Enum Class UseAction

java.lang.Object
java.lang.Enum<UseAction>
net.minecraft.item.consume.UseAction
All Implemented Interfaces:
Serializable, Comparable<UseAction>, Constable, StringIdentifiable

public enum UseAction extends Enum<UseAction> implements StringIdentifiable
Mappings:
Namespace Name
named net/minecraft/item/consume/UseAction
intermediary net/minecraft/class_1839
official cxq
  • Enum Constant Details

    • NONE

      public static final UseAction 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

      public static final UseAction 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

      public static final UseAction 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

      public static final UseAction 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

      public static final UseAction 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

      public static final UseAction 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

      public static final UseAction 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

      public static final UseAction 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

      public static final UseAction 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

      public static final UseAction 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

      private static final IntFunction<UseAction> 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

      public static final com.mojang.serialization.Codec<UseAction> 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

      public static final PacketCodec<ByteBuf,UseAction> 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

      private final String 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

      private UseAction(int id, String name)
      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

      public static UseAction[] 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

      public static UseAction valueOf(String name)
      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 name
      NullPointerException - 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

      public String asString()
      Returns the unique string representation of the enum, used for serialization.
      Specified by:
      asString in interface StringIdentifiable
      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;