public static enum ItemFishFood.FishType extends java.lang.Enum<ItemFishFood.FishType>
Enum Constant and Description |
---|
COD |
PUFFERFISH |
SALMON |
TROPICAL_FISH |
Modifier and Type | Method and Description |
---|---|
static ItemFishFood.FishType |
byItemStack(ItemStack stack) |
boolean |
canCook() |
int |
getCookedHealAmount() |
float |
getCookedSaturationModifier() |
int |
getUncookedHealAmount() |
float |
getUncookedSaturationModifier() |
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 TROPICAL_FISH
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 getUncookedHealAmount()
public float getUncookedSaturationModifier()
public int getCookedHealAmount()
public float getCookedSaturationModifier()
public boolean canCook()
public static ItemFishFood.FishType byItemStack(ItemStack stack)