Package net.minecraft.item.consume
Enum Class UseAction
- All Implemented Interfaces:
Serializable
,Comparable<UseAction>
,Constable
,StringIdentifiable
- Mappings:
Namespace Name named net/minecraft/item/consume/UseAction
intermediary net/minecraft/class_1839
official cxq
-
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
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final IntFunction
<UseAction> static final com.mojang.serialization.Codec
<UseAction> private final int
private final String
static final PacketCodec
<ByteBuf, UseAction> Fields inherited from interface net.minecraft.util.StringIdentifiable
CACHED_MAP_THRESHOLD
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionasString()
Returns the unique string representation of the enum, used for serialization.int
getId()
static UseAction
Returns 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 NONE
Lnet/minecraft/item/consume/UseAction;NONE:Lnet/minecraft/item/consume/UseAction;
intermediary field_8952
Lnet/minecraft/class_1839;field_8952:Lnet/minecraft/class_1839;
official a
Lcxq;a:Lcxq;
-
EAT
- Mappings:
Namespace Name Mixin selector named EAT
Lnet/minecraft/item/consume/UseAction;EAT:Lnet/minecraft/item/consume/UseAction;
intermediary field_8950
Lnet/minecraft/class_1839;field_8950:Lnet/minecraft/class_1839;
official b
Lcxq;b:Lcxq;
-
DRINK
- Mappings:
Namespace Name Mixin selector named DRINK
Lnet/minecraft/item/consume/UseAction;DRINK:Lnet/minecraft/item/consume/UseAction;
intermediary field_8946
Lnet/minecraft/class_1839;field_8946:Lnet/minecraft/class_1839;
official c
Lcxq;c:Lcxq;
-
BLOCK
- Mappings:
Namespace Name Mixin selector named BLOCK
Lnet/minecraft/item/consume/UseAction;BLOCK:Lnet/minecraft/item/consume/UseAction;
intermediary field_8949
Lnet/minecraft/class_1839;field_8949:Lnet/minecraft/class_1839;
official d
Lcxq;d:Lcxq;
-
BOW
- Mappings:
Namespace Name Mixin selector named BOW
Lnet/minecraft/item/consume/UseAction;BOW:Lnet/minecraft/item/consume/UseAction;
intermediary field_8953
Lnet/minecraft/class_1839;field_8953:Lnet/minecraft/class_1839;
official e
Lcxq;e:Lcxq;
-
SPEAR
- Mappings:
Namespace Name Mixin selector named SPEAR
Lnet/minecraft/item/consume/UseAction;SPEAR:Lnet/minecraft/item/consume/UseAction;
intermediary field_8951
Lnet/minecraft/class_1839;field_8951:Lnet/minecraft/class_1839;
official f
Lcxq;f:Lcxq;
-
CROSSBOW
- Mappings:
Namespace Name Mixin selector named CROSSBOW
Lnet/minecraft/item/consume/UseAction;CROSSBOW:Lnet/minecraft/item/consume/UseAction;
intermediary field_8947
Lnet/minecraft/class_1839;field_8947:Lnet/minecraft/class_1839;
official g
Lcxq;g:Lcxq;
-
SPYGLASS
- Mappings:
Namespace Name Mixin selector named SPYGLASS
Lnet/minecraft/item/consume/UseAction;SPYGLASS:Lnet/minecraft/item/consume/UseAction;
intermediary field_27079
Lnet/minecraft/class_1839;field_27079:Lnet/minecraft/class_1839;
official h
Lcxq;h:Lcxq;
-
TOOT_HORN
- Mappings:
Namespace Name Mixin selector named TOOT_HORN
Lnet/minecraft/item/consume/UseAction;TOOT_HORN:Lnet/minecraft/item/consume/UseAction;
intermediary field_39058
Lnet/minecraft/class_1839;field_39058:Lnet/minecraft/class_1839;
official i
Lcxq;i:Lcxq;
-
BRUSH
- Mappings:
Namespace Name Mixin selector named BRUSH
Lnet/minecraft/item/consume/UseAction;BRUSH:Lnet/minecraft/item/consume/UseAction;
intermediary field_42717
Lnet/minecraft/class_1839;field_42717:Lnet/minecraft/class_1839;
official j
Lcxq;j:Lcxq;
-
-
Field Details
-
BY_ID
- Mappings:
Namespace Name Mixin selector named BY_ID
Lnet/minecraft/item/consume/UseAction;BY_ID:Ljava/util/function/IntFunction;
intermediary field_53766
Lnet/minecraft/class_1839;field_53766:Ljava/util/function/IntFunction;
official m
Lcxq;m:Ljava/util/function/IntFunction;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/item/consume/UseAction;CODEC:Lcom/mojang/serialization/Codec;
intermediary field_53764
Lnet/minecraft/class_1839;field_53764:Lcom/mojang/serialization/Codec;
official k
Lcxq;k:Lcom/mojang/serialization/Codec;
-
PACKET_CODEC
- Mappings:
Namespace Name Mixin selector named PACKET_CODEC
Lnet/minecraft/item/consume/UseAction;PACKET_CODEC:Lnet/minecraft/network/codec/PacketCodec;
intermediary field_53765
Lnet/minecraft/class_1839;field_53765:Lnet/minecraft/class_9139;
official l
Lcxq;l:Lzt;
-
id
private final int id- Mappings:
Namespace Name Mixin selector named id
Lnet/minecraft/item/consume/UseAction;id:I
intermediary field_53767
Lnet/minecraft/class_1839;field_53767:I
official n
Lcxq;n:I
-
name
- Mappings:
Namespace Name Mixin selector named name
Lnet/minecraft/item/consume/UseAction;name:Ljava/lang/String;
intermediary field_53768
Lnet/minecraft/class_1839;field_53768:Ljava/lang/String;
official o
Lcxq;o: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;)V
intermediary <init>
Lnet/minecraft/class_1839;<init>(Ljava/lang/String;IILjava/lang/String;)V
official <init>
Lcxq;<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 getId
Lnet/minecraft/item/consume/UseAction;getId()I
intermediary method_62838
Lnet/minecraft/class_1839;method_62838()I
official a
Lcxq;a()I
-
asString
Returns the unique string representation of the enum, used for serialization.- Specified by:
asString
in interfaceStringIdentifiable
- Returns:
- the unique string representation of the enum, used for serialization
- Mappings:
Namespace Name Mixin selector named asString
Lnet/minecraft/util/StringIdentifiable;asString()Ljava/lang/String;
intermediary method_15434
Lnet/minecraft/class_3542;method_15434()Ljava/lang/String;
official c
Lbba;c()Ljava/lang/String;
-