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 cws
-
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 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()static 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 aLcws;a:Lcws;
-
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 bLcws;b:Lcws;
-
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 cLcws;c:Lcws;
-
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 dLcws;d:Lcws;
-
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 eLcws;e:Lcws;
-
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 fLcws;f:Lcws;
-
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 gLcws;g:Lcws;
-
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 hLcws;h:Lcws;
-
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 iLcws;i:Lcws;
-
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 jLcws;j:Lcws;
-
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 kLcws;k:Lcws;
-
-
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 nLcws;n: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 lLcws;l: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 mLcws;m:Lyn;
-
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 oLcws;o: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 pLcws;p:Ljava/lang/String;
-
-
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>Lcws;<init>(Ljava/lang/String;IILjava/lang/String;)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 aLcws;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 cLazv;c()Ljava/lang/String;
-