Package net.minecraft.item
Enum Class FishItem.FishType
- All Implemented Interfaces:
Serializable,Comparable<FishItem.FishType>,Constable
- Enclosing class:
- FishItem
- Mappings:
Namespace Name official aig$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 static final Map<Integer,FishItem.FishType> private final intprivate final Stringprivate final intprivate final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic FishItem.FishTypegetById(int id) static FishItem.FishTypegetByItemStack(ItemStack itemStack) intfloatintgetId()getName()intfloatstatic 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 aLaig$a;a:Laig$a;intermediary field_6958Lnet/minecraft/class_1732$class_1733;field_6958: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 bLaig$a;b:Laig$a;intermediary field_6959Lnet/minecraft/class_1732$class_1733;field_6959:Lnet/minecraft/class_1732$class_1733;named SALMONLnet/minecraft/item/FishItem$FishType;SALMON:Lnet/minecraft/item/FishItem$FishType;
-
CLOWNFISH
- Mappings:
Namespace Name Mixin selector official cLaig$a;c:Laig$a;intermediary field_6960Lnet/minecraft/class_1732$class_1733;field_6960:Lnet/minecraft/class_1732$class_1733;named CLOWNFISHLnet/minecraft/item/FishItem$FishType;CLOWNFISH:Lnet/minecraft/item/FishItem$FishType;
-
PUFFERFISH
- Mappings:
Namespace Name Mixin selector official dLaig$a;d:Laig$a;intermediary field_6961Lnet/minecraft/class_1732$class_1733;field_6961:Lnet/minecraft/class_1732$class_1733;named PUFFERFISHLnet/minecraft/item/FishItem$FishType;PUFFERFISH:Lnet/minecraft/item/FishItem$FishType;
-
-
Field Details
-
FISH_TYPES
- Mappings:
Namespace Name Mixin selector official eLaig$a;e:Ljava/util/Map;intermediary field_6962Lnet/minecraft/class_1732$class_1733;field_6962:Ljava/util/Map;named FISH_TYPESLnet/minecraft/item/FishItem$FishType;FISH_TYPES:Ljava/util/Map;
-
id
private final int id- Mappings:
Namespace Name Mixin selector official fLaig$a;f:Iintermediary field_6963Lnet/minecraft/class_1732$class_1733;field_6963:Inamed idLnet/minecraft/item/FishItem$FishType;id:I
-
name
- Mappings:
Namespace Name Mixin selector official gLaig$a;g:Ljava/lang/String;intermediary field_6964Lnet/minecraft/class_1732$class_1733;field_6964:Ljava/lang/String;named nameLnet/minecraft/item/FishItem$FishType;name:Ljava/lang/String;
-
uncookedHungerPoints
private final int uncookedHungerPoints- Mappings:
Namespace Name Mixin selector official hLaig$a;h: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 iLaig$a;i: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 jLaig$a;j: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 kLaig$a;k: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 lLaig$a;l:Zintermediary field_6971Lnet/minecraft/class_1732$class_1733;field_6971:Znamed canBeCookedLnet/minecraft/item/FishItem$FishType;canBeCooked:Z
-
-
Constructor Details
-
FishType
private FishType(int id, String name, int uncookedHungerPoints, float uncookedSaturation, int cookedHungerPoints, float cookedSaturation) - Mappings:
Namespace Name Mixin selector official <init>Laig$a;<init>(Ljava/lang/String;IILjava/lang/String;IFIF)Vintermediary <init>Lnet/minecraft/class_1732$class_1733;<init>(Ljava/lang/String;IILjava/lang/String;IFIF)Vnamed <init>Lnet/minecraft/item/FishItem$FishType;<init>(Ljava/lang/String;IILjava/lang/String;IFIF)V
-
FishType
- Mappings:
Namespace Name Mixin selector official <init>Laig$a;<init>(Ljava/lang/String;IILjava/lang/String;IF)Vintermediary <init>Lnet/minecraft/class_1732$class_1733;<init>(Ljava/lang/String;IILjava/lang/String;IF)Vnamed <init>Lnet/minecraft/item/FishItem$FishType;<init>(Ljava/lang/String;IILjava/lang/String;IF)V
-
-
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
-
getId
public int getId()- Mappings:
Namespace Name Mixin selector official aLaig$a;a()Iintermediary method_6348Lnet/minecraft/class_1732$class_1733;method_6348()Inamed getIdLnet/minecraft/item/FishItem$FishType;getId()I
-
getName
- Mappings:
Namespace Name Mixin selector official bLaig$a;b()Ljava/lang/String;intermediary method_6352Lnet/minecraft/class_1732$class_1733;method_6352()Ljava/lang/String;named getNameLnet/minecraft/item/FishItem$FishType;getName()Ljava/lang/String;
-
getUncookedHungerPoints
public int getUncookedHungerPoints()- Mappings:
Namespace Name Mixin selector official cLaig$a;c()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 dLaig$a;d()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 eLaig$a;e()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 fLaig$a;f()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 gLaig$a;g()Zintermediary method_6359Lnet/minecraft/class_1732$class_1733;method_6359()Znamed canBeCookedLnet/minecraft/item/FishItem$FishType;canBeCooked()Z
-
getById
- Mappings:
Namespace Name Mixin selector official aLaig$a;a(I)Laig$a;intermediary method_6349Lnet/minecraft/class_1732$class_1733;method_6349(I)Lnet/minecraft/class_1732$class_1733;named getByIdLnet/minecraft/item/FishItem$FishType;getById(I)Lnet/minecraft/item/FishItem$FishType;
-
getByItemStack
- Mappings:
Namespace Name Mixin selector official aLaig$a;a(Laip;)Laig$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;
-