001 package org.bukkit.material;
002
003 import org.bukkit.Material;
004 import org.bukkit.block.BlockFace;
005
006 /**
007 * Represents an ender chest
008 */
009 public class EnderChest extends DirectionalContainer {
010
011 public EnderChest() {
012 super(Material.ENDER_CHEST);
013 }
014
015 /**
016 * Instantiate an ender chest facing in a particular direction.
017 *
018 * @param direction the direction the ender chest's lid opens towards
019 */
020 public EnderChest(BlockFace direction) {
021 this();
022 setFacingDirection(direction);
023 }
024
025 /**
026 *
027 * @deprecated Magic value
028 */
029 @Deprecated
030 public EnderChest(final int type) {
031 super(type);
032 }
033
034 public EnderChest(final Material type) {
035 super(type);
036 }
037
038 /**
039 *
040 * @deprecated Magic value
041 */
042 @Deprecated
043 public EnderChest(final int type, final byte data) {
044 super(type, data);
045 }
046
047 /**
048 *
049 * @deprecated Magic value
050 */
051 @Deprecated
052 public EnderChest(final Material type, final byte data) {
053 super(type, data);
054 }
055
056 @Override
057 public EnderChest clone() {
058 return (EnderChest) super.clone();
059 }
060 }