53 lines
1.1 KiB
Java
53 lines
1.1 KiB
Java
package org.bukkit.material;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
import org.bukkit.Material;
|
|
|
|
/**
|
|
* Represents the different types of monster eggs
|
|
*/
|
|
public class MonsterEggs extends TexturedMaterial {
|
|
|
|
private static final List<Material> textures = new ArrayList<Material>();
|
|
static {
|
|
textures.add(Material.STONE);
|
|
textures.add(Material.COBBLESTONE);
|
|
textures.add(Material.SMOOTH_BRICK);
|
|
}
|
|
|
|
public MonsterEggs() {
|
|
super(Material.MONSTER_EGGS);
|
|
}
|
|
|
|
public MonsterEggs(final int type) {
|
|
super(type);
|
|
}
|
|
|
|
public MonsterEggs(final Material type) {
|
|
super((textures.contains(type)) ? Material.MONSTER_EGGS : type);
|
|
if (textures.contains(type)) {
|
|
setMaterial(type);
|
|
}
|
|
}
|
|
|
|
public MonsterEggs(final int type, final byte data) {
|
|
super(type, data);
|
|
}
|
|
|
|
public MonsterEggs(final Material type, final byte data) {
|
|
super(type, data);
|
|
}
|
|
|
|
@Override
|
|
public List<Material> getTextures() {
|
|
return textures;
|
|
}
|
|
|
|
@Override
|
|
public MonsterEggs clone() {
|
|
return (MonsterEggs) super.clone();
|
|
}
|
|
}
|