001 package org.bukkit.material;
002
003 import java.util.ArrayList;
004 import java.util.List;
005
006 import org.bukkit.Material;
007
008 /**
009 * Represents the different types of monster eggs
010 */
011 public class MonsterEggs extends TexturedMaterial {
012
013 private static final List<Material> textures = new ArrayList<Material>();
014 static {
015 textures.add(Material.STONE);
016 textures.add(Material.COBBLESTONE);
017 textures.add(Material.SMOOTH_BRICK);
018 }
019
020 public MonsterEggs() {
021 super(Material.MONSTER_EGGS);
022 }
023
024 /**
025 *
026 * @deprecated Magic value
027 */
028 @Deprecated
029 public MonsterEggs(final int type) {
030 super(type);
031 }
032
033 public MonsterEggs(final Material type) {
034 super((textures.contains(type)) ? Material.MONSTER_EGGS : type);
035 if (textures.contains(type)) {
036 setMaterial(type);
037 }
038 }
039
040 /**
041 *
042 * @deprecated Magic value
043 */
044 @Deprecated
045 public MonsterEggs(final int type, final byte data) {
046 super(type, data);
047 }
048
049 /**
050 *
051 * @deprecated Magic value
052 */
053 @Deprecated
054 public MonsterEggs(final Material type, final byte data) {
055 super(type, data);
056 }
057
058 @Override
059 public List<Material> getTextures() {
060 return textures;
061 }
062
063 @Override
064 public MonsterEggs clone() {
065 return (MonsterEggs) super.clone();
066 }
067 }