public static enum ItemFishFood.FishType extends java.lang.Enum<ItemFishFood.FishType>
Enum Constant and Description |
---|
CLOWNFISH |
COD |
PUFFERFISH |
SALMON |
Modifier and Type | Field and Description |
---|---|
private boolean |
cookable |
private int |
cookedHealAmount |
private float |
cookedSaturationModifier |
private int |
meta |
private static java.util.Map<java.lang.Integer,ItemFishFood.FishType> |
META_LOOKUP |
private int |
uncookedHealAmount |
private float |
uncookedSaturationModifier |
private java.lang.String |
unlocalizedName |
Modifier and Type | Method and Description |
---|---|
static ItemFishFood.FishType |
byItemStack(ItemStack stack) |
static ItemFishFood.FishType |
byMetadata(int meta) |
boolean |
canCook() |
int |
getCookedHealAmount() |
float |
getCookedSaturationModifier() |
int |
getMetadata() |
int |
getUncookedHealAmount() |
float |
getUncookedSaturationModifier() |
java.lang.String |
getUnlocalizedName() |
static ItemFishFood.FishType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ItemFishFood.FishType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ItemFishFood.FishType COD
public static final ItemFishFood.FishType SALMON
public static final ItemFishFood.FishType CLOWNFISH
public static final ItemFishFood.FishType PUFFERFISH
private static final java.util.Map<java.lang.Integer,ItemFishFood.FishType> META_LOOKUP
private final int meta
private final java.lang.String unlocalizedName
private final int uncookedHealAmount
private final float uncookedSaturationModifier
private final int cookedHealAmount
private final float cookedSaturationModifier
private final boolean cookable
public static ItemFishFood.FishType[] values()
for (ItemFishFood.FishType c : ItemFishFood.FishType.values()) System.out.println(c);
public static ItemFishFood.FishType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getMetadata()
public java.lang.String getUnlocalizedName()
public int getUncookedHealAmount()
public float getUncookedSaturationModifier()
public int getCookedHealAmount()
public float getCookedSaturationModifier()
public boolean canCook()
public static ItemFishFood.FishType byMetadata(int meta)
public static ItemFishFood.FishType byItemStack(ItemStack stack)