org.bukkit.material.MonsterEggs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of chest-server Show documentation
Show all versions of chest-server Show documentation
A spigot fork to kotlin structure and news.
The newest version!
package org.bukkit.material;
import org.bukkit.Material;
import java.util.ArrayList;
import java.util.List;
/**
* Represents the different types of monster eggs
*/
public class MonsterEggs extends TexturedMaterial {
private static final List textures = new ArrayList();
static {
textures.add(Material.STONE);
textures.add(Material.COBBLESTONE);
textures.add(Material.SMOOTH_BRICK);
}
public MonsterEggs() {
super(Material.MONSTER_EGGS);
}
/**
* @param type the raw type id
* @deprecated Magic value
*/
@Deprecated
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);
}
}
/**
* @param type the raw type id
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
public MonsterEggs(final int type, final byte data) {
super(type, data);
}
/**
* @param type the type
* @param data the raw data value
* @deprecated Magic value
*/
@Deprecated
public MonsterEggs(final Material type, final byte data) {
super(type, data);
}
@Override
public List getTextures() {
return textures;
}
@Override
public MonsterEggs clone() {
return (MonsterEggs) super.clone();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy