Package net.minecraft.item.consume
Enum Class UseAction
- All Implemented Interfaces:
Serializable,Comparable<UseAction>,Constable,StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/item/consume/UseActionintermediary net/minecraft/class_1839official djk
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>Nested classes/interfaces inherited from interface net.minecraft.util.StringIdentifiable
StringIdentifiable.BasicCodec<S extends StringIdentifiable>, StringIdentifiable.EnumCodec<E extends Enum<E> & StringIdentifiable> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IntFunction<UseAction> static final com.mojang.serialization.Codec<UseAction> private final booleanprivate final intprivate final Stringstatic final PacketCodec<ByteBuf, UseAction> Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasString()Returns the unique string representation of the enum, used for serialization.intgetId()booleanstatic UseActionReturns the enum constant of this class with the specified name.static UseAction[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
- Mappings:
Namespace Name Mixin selector named NONELnet/minecraft/item/consume/UseAction;NONE:Lnet/minecraft/item/consume/UseAction;intermediary field_8952Lnet/minecraft/class_1839;field_8952:Lnet/minecraft/class_1839;official aLdjk;a:Ldjk;
-
EAT
- Mappings:
Namespace Name Mixin selector named EATLnet/minecraft/item/consume/UseAction;EAT:Lnet/minecraft/item/consume/UseAction;intermediary field_8950Lnet/minecraft/class_1839;field_8950:Lnet/minecraft/class_1839;official bLdjk;b:Ldjk;
-
DRINK
- Mappings:
Namespace Name Mixin selector named DRINKLnet/minecraft/item/consume/UseAction;DRINK:Lnet/minecraft/item/consume/UseAction;intermediary field_8946Lnet/minecraft/class_1839;field_8946:Lnet/minecraft/class_1839;official cLdjk;c:Ldjk;
-
BLOCK
- Mappings:
Namespace Name Mixin selector named BLOCKLnet/minecraft/item/consume/UseAction;BLOCK:Lnet/minecraft/item/consume/UseAction;intermediary field_8949Lnet/minecraft/class_1839;field_8949:Lnet/minecraft/class_1839;official dLdjk;d:Ldjk;
-
BOW
- Mappings:
Namespace Name Mixin selector named BOWLnet/minecraft/item/consume/UseAction;BOW:Lnet/minecraft/item/consume/UseAction;intermediary field_8953Lnet/minecraft/class_1839;field_8953:Lnet/minecraft/class_1839;official eLdjk;e:Ldjk;
-
TRIDENT
- Mappings:
Namespace Name Mixin selector named TRIDENTLnet/minecraft/item/consume/UseAction;TRIDENT:Lnet/minecraft/item/consume/UseAction;intermediary field_63380Lnet/minecraft/class_1839;field_63380:Lnet/minecraft/class_1839;official fLdjk;f:Ldjk;
-
CROSSBOW
- Mappings:
Namespace Name Mixin selector named CROSSBOWLnet/minecraft/item/consume/UseAction;CROSSBOW:Lnet/minecraft/item/consume/UseAction;intermediary field_8947Lnet/minecraft/class_1839;field_8947:Lnet/minecraft/class_1839;official gLdjk;g:Ldjk;
-
SPYGLASS
- Mappings:
Namespace Name Mixin selector named SPYGLASSLnet/minecraft/item/consume/UseAction;SPYGLASS:Lnet/minecraft/item/consume/UseAction;intermediary field_27079Lnet/minecraft/class_1839;field_27079:Lnet/minecraft/class_1839;official hLdjk;h:Ldjk;
-
TOOT_HORN
- Mappings:
Namespace Name Mixin selector named TOOT_HORNLnet/minecraft/item/consume/UseAction;TOOT_HORN:Lnet/minecraft/item/consume/UseAction;intermediary field_39058Lnet/minecraft/class_1839;field_39058:Lnet/minecraft/class_1839;official iLdjk;i:Ldjk;
-
BRUSH
- Mappings:
Namespace Name Mixin selector named BRUSHLnet/minecraft/item/consume/UseAction;BRUSH:Lnet/minecraft/item/consume/UseAction;intermediary field_42717Lnet/minecraft/class_1839;field_42717:Lnet/minecraft/class_1839;official jLdjk;j:Ldjk;
-
BUNDLE
- Mappings:
Namespace Name Mixin selector named BUNDLELnet/minecraft/item/consume/UseAction;BUNDLE:Lnet/minecraft/item/consume/UseAction;intermediary field_55494Lnet/minecraft/class_1839;field_55494:Lnet/minecraft/class_1839;official kLdjk;k:Ldjk;
-
SPEAR
- Mappings:
Namespace Name Mixin selector named SPEARLnet/minecraft/item/consume/UseAction;SPEAR:Lnet/minecraft/item/consume/UseAction;intermediary field_8951Lnet/minecraft/class_1839;field_8951:Lnet/minecraft/class_1839;official lLdjk;l:Ldjk;
-
-
Field Details
-
BY_ID
- Mappings:
Namespace Name Mixin selector named BY_IDLnet/minecraft/item/consume/UseAction;BY_ID:Ljava/util/function/IntFunction;intermediary field_53766Lnet/minecraft/class_1839;field_53766:Ljava/util/function/IntFunction;official oLdjk;o:Ljava/util/function/IntFunction;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/item/consume/UseAction;CODEC:Lcom/mojang/serialization/Codec;intermediary field_53764Lnet/minecraft/class_1839;field_53764:Lcom/mojang/serialization/Codec;official mLdjk;m:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODECLnet/minecraft/item/consume/UseAction;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;intermediary field_53765Lnet/minecraft/class_1839;field_53765:Lnet/minecraft/class_9139;official nLdjk;n:Laat;
-
id
private final int id- Mappings:
Namespace Name Mixin selector named idLnet/minecraft/item/consume/UseAction;id:Iintermediary field_53767Lnet/minecraft/class_1839;field_53767:Iofficial pLdjk;p:I
-
name
- Mappings:
Namespace Name Mixin selector named nameLnet/minecraft/item/consume/UseAction;name:Ljava/lang/String;intermediary field_53768Lnet/minecraft/class_1839;field_53768:Ljava/lang/String;official qLdjk;q:Ljava/lang/String;
-
field_63381
private final boolean field_63381- Mappings:
Namespace Name Mixin selector named field_63381Lnet/minecraft/item/consume/UseAction;field_63381:Zintermediary field_63381Lnet/minecraft/class_1839;field_63381:Zofficial rLdjk;r:Z
-
-
Constructor Details
-
UseAction
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/item/consume/UseAction;<init>(Ljava/lang/String;IILjava/lang/String;)Vintermediary <init>Lnet/minecraft/class_1839;<init>(Ljava/lang/String;IILjava/lang/String;)Vofficial <init>Ldjk;<init>(Ljava/lang/String;IILjava/lang/String;)V
-
UseAction
-
-
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 named getIdLnet/minecraft/item/consume/UseAction;getId()Iintermediary method_62838Lnet/minecraft/class_1839;method_62838()Iofficial aLdjk;a()I
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asStringin interfaceStringIdentifiable- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asStringLnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;intermediary method_15434Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;official cLbhi;c()Ljava/lang/String;
-
method_75225
public boolean method_75225()- Mappings:
Namespace Name Mixin selector named method_75225Lnet/minecraft/item/consume/UseAction;method_75225()Zintermediary method_75225Lnet/minecraft/class_1839;method_75225()Zofficial bLdjk;b()Z
-