Package net.minecraft.item
Enum Class FishItem.FishType
- All Implemented Interfaces:
Serializable,Comparable<FishItem.FishType>,Constable
- Enclosing class:
- FishItem
- Mappings:
Namespace Name official ass$aintermediary net/minecraft/class_1732$class_1733named net/minecraft/item/FishItem$FishType
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanprivate final intprivate final floatprivate final intprivate final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic FishItem.FishTypegetByItemStack(ItemStack itemStack) intfloatintfloatstatic FishItem.FishTypeReturns the enum constant of this class with the specified name.static FishItem.FishType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COD
- Mappings:
Namespace Name Mixin selector official aLass$a;a:Lass$a;intermediary field_17180Lnet/minecraft/class_1732$class_1733;field_17180:Lnet/minecraft/class_1732$class_1733;named CODLnet/minecraft/item/FishItem$FishType;COD:Lnet/minecraft/item/FishItem$FishType;
-
SALMON
- Mappings:
Namespace Name Mixin selector official bLass$a;b:Lass$a;intermediary field_17181Lnet/minecraft/class_1732$class_1733;field_17181:Lnet/minecraft/class_1732$class_1733;named SALMONLnet/minecraft/item/FishItem$FishType;SALMON:Lnet/minecraft/item/FishItem$FishType;
-
TROPICAL_FISH
- Mappings:
Namespace Name Mixin selector official cLass$a;c:Lass$a;intermediary field_17182Lnet/minecraft/class_1732$class_1733;field_17182:Lnet/minecraft/class_1732$class_1733;named TROPICAL_FISHLnet/minecraft/item/FishItem$FishType;TROPICAL_FISH:Lnet/minecraft/item/FishItem$FishType;
-
PUFFERFISH
- Mappings:
Namespace Name Mixin selector official dLass$a;d:Lass$a;intermediary field_17183Lnet/minecraft/class_1732$class_1733;field_17183:Lnet/minecraft/class_1732$class_1733;named PUFFERFISHLnet/minecraft/item/FishItem$FishType;PUFFERFISH:Lnet/minecraft/item/FishItem$FishType;
-
-
Field Details
-
uncookedHungerPoints
private final int uncookedHungerPoints- Mappings:
Namespace Name Mixin selector official eLass$a;e:Iintermediary field_6967Lnet/minecraft/class_1732$class_1733;field_6967:Inamed uncookedHungerPointsLnet/minecraft/item/FishItem$FishType;uncookedHungerPoints:I
-
uncookedSaturation
private final float uncookedSaturation- Mappings:
Namespace Name Mixin selector official fLass$a;f:Fintermediary field_6968Lnet/minecraft/class_1732$class_1733;field_6968:Fnamed uncookedSaturationLnet/minecraft/item/FishItem$FishType;uncookedSaturation:F
-
cookedHungerPoints
private final int cookedHungerPoints- Mappings:
Namespace Name Mixin selector official gLass$a;g:Iintermediary field_6969Lnet/minecraft/class_1732$class_1733;field_6969:Inamed cookedHungerPointsLnet/minecraft/item/FishItem$FishType;cookedHungerPoints:I
-
cookedSaturation
private final float cookedSaturation- Mappings:
Namespace Name Mixin selector official hLass$a;h:Fintermediary field_6970Lnet/minecraft/class_1732$class_1733;field_6970:Fnamed cookedSaturationLnet/minecraft/item/FishItem$FishType;cookedSaturation:F
-
canBeCooked
private final boolean canBeCooked- Mappings:
Namespace Name Mixin selector official iLass$a;i:Zintermediary field_6971Lnet/minecraft/class_1732$class_1733;field_6971:Znamed canBeCookedLnet/minecraft/item/FishItem$FishType;canBeCooked:Z
-
-
Constructor Details
-
FishType
private FishType(int int2, float float2, int int3, float float3) -
FishType
private FishType(int int2, float float2)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getUncookedHungerPoints
public int getUncookedHungerPoints()- Mappings:
Namespace Name Mixin selector official aLass$a;a()Iintermediary method_6353Lnet/minecraft/class_1732$class_1733;method_6353()Inamed getUncookedHungerPointsLnet/minecraft/item/FishItem$FishType;getUncookedHungerPoints()I
-
getUncookedSaturation
public float getUncookedSaturation()- Mappings:
Namespace Name Mixin selector official bLass$a;b()Fintermediary method_6354Lnet/minecraft/class_1732$class_1733;method_6354()Fnamed getUncookedSaturationLnet/minecraft/item/FishItem$FishType;getUncookedSaturation()F
-
getCookedHungerPoints
public int getCookedHungerPoints()- Mappings:
Namespace Name Mixin selector official cLass$a;c()Iintermediary method_6355Lnet/minecraft/class_1732$class_1733;method_6355()Inamed getCookedHungerPointsLnet/minecraft/item/FishItem$FishType;getCookedHungerPoints()I
-
getCookedSaturation
public float getCookedSaturation()- Mappings:
Namespace Name Mixin selector official dLass$a;d()Fintermediary method_6356Lnet/minecraft/class_1732$class_1733;method_6356()Fnamed getCookedSaturationLnet/minecraft/item/FishItem$FishType;getCookedSaturation()F
-
canBeCooked
public boolean canBeCooked()- Mappings:
Namespace Name Mixin selector official eLass$a;e()Zintermediary method_6359Lnet/minecraft/class_1732$class_1733;method_6359()Znamed canBeCookedLnet/minecraft/item/FishItem$FishType;canBeCooked()Z
-
getByItemStack
- Mappings:
Namespace Name Mixin selector official aLass$a;a(Late;)Lass$a;intermediary method_6350Lnet/minecraft/class_1732$class_1733;method_6350(Lnet/minecraft/class_1071;)Lnet/minecraft/class_1732$class_1733;named getByItemStackLnet/minecraft/item/FishItem$FishType;getByItemStack(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/FishItem$FishType;
-