public static enum ItemFishFood.FishType extends java.lang.Enum<ItemFishFood.FishType>
Enum Constant and Description |
---|
CLOWNFISH |
COD |
PUFFERFISH |
SALMON |
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
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)