Files
Paper/paper-api/src/main/java/org/bukkit/material/EnderChest.java
2019-05-20 20:09:17 +10:00

48 lines
1.0 KiB
Java

package org.bukkit.material;
import org.bukkit.Material;
import org.bukkit.block.BlockFace;
/**
* Represents an ender chest
*
* @deprecated all usage of MaterialData is deprecated and subject to removal.
* Use {@link org.bukkit.block.data.BlockData}.
*/
@Deprecated
public class EnderChest extends DirectionalContainer {
public EnderChest() {
super(Material.LEGACY_ENDER_CHEST);
}
/**
* Instantiate an ender chest facing in a particular direction.
*
* @param direction the direction the ender chest's lid opens towards
*/
public EnderChest(BlockFace direction) {
this();
setFacingDirection(direction);
}
public EnderChest(final Material type) {
super(type);
}
/**
* @param type the type
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
public EnderChest(final Material type, final byte data) {
super(type, data);
}
@Override
public EnderChest clone() {
return (EnderChest) super.clone();
}
}