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 dkh
-
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 intprivate final Stringprivate final booleanstatic 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 aLdkh;a:Ldkh;
-
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 bLdkh;b:Ldkh;
-
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 cLdkh;c:Ldkh;
-
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 dLdkh;d:Ldkh;
-
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 eLdkh;e:Ldkh;
-
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 fLdkh;f:Ldkh;
-
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 gLdkh;g:Ldkh;
-
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 hLdkh;h:Ldkh;
-
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 iLdkh;i:Ldkh;
-
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 jLdkh;j:Ldkh;
-
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 kLdkh;k:Ldkh;
-
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 lLdkh;l:Ldkh;
-
-
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 oLdkh;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 mLdkh;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 nLdkh;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 pLdkh;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 qLdkh;q:Ljava/lang/String;
-
noOffset
private final boolean noOffset- Mappings:
Namespace Name Mixin selector named noOffsetLnet/minecraft/item/consume/UseAction;noOffset:Zintermediary field_63381Lnet/minecraft/class_1839;field_63381:Zofficial rLdkh;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>Ldkh;<init>(Ljava/lang/String;IILjava/lang/String;)V
-
UseAction
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/item/consume/UseAction;<init>(Ljava/lang/String;IILjava/lang/String;Z)Vintermediary <init>Lnet/minecraft/class_1839;<init>(Ljava/lang/String;IILjava/lang/String;Z)Vofficial <init>Ldkh;<init>(Ljava/lang/String;IILjava/lang/String;Z)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 named getIdLnet/minecraft/item/consume/UseAction;getId()Iintermediary method_62838Lnet/minecraft/class_1839;method_62838()Iofficial aLdkh;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 cLbhg;c()Ljava/lang/String;
-
hasNoOffset
public boolean hasNoOffset()- Mappings:
Namespace Name Mixin selector named hasNoOffsetLnet/minecraft/item/consume/UseAction;hasNoOffset()Zintermediary method_75225Lnet/minecraft/class_1839;method_75225()Zofficial bLdkh;b()Z
-