Enum Class UseAction

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

public enum UseAction extends Enum<UseAction>
Mappings:
Namespace Name
official ano
intermediary net/minecraft/class_1099
named net/minecraft/util/UseAction
  • Enum Constant Details

    • NONE

      public static final UseAction NONE
      Mappings:
      Namespace Name Mixin selector
      official a Lano;a:Lano;
      intermediary field_9156 Lnet/minecraft/class_1099;field_9156:Lnet/minecraft/class_1099;
      named NONE Lnet/minecraft/util/UseAction;NONE:Lnet/minecraft/util/UseAction;
    • EAT

      public static final UseAction EAT
      Mappings:
      Namespace Name Mixin selector
      official b Lano;b:Lano;
      intermediary field_9157 Lnet/minecraft/class_1099;field_9157:Lnet/minecraft/class_1099;
      named EAT Lnet/minecraft/util/UseAction;EAT:Lnet/minecraft/util/UseAction;
    • DRINK

      public static final UseAction DRINK
      Mappings:
      Namespace Name Mixin selector
      official c Lano;c:Lano;
      intermediary field_9158 Lnet/minecraft/class_1099;field_9158:Lnet/minecraft/class_1099;
      named DRINK Lnet/minecraft/util/UseAction;DRINK:Lnet/minecraft/util/UseAction;
    • BLOCK

      public static final UseAction BLOCK
      Mappings:
      Namespace Name Mixin selector
      official d Lano;d:Lano;
      intermediary field_9159 Lnet/minecraft/class_1099;field_9159:Lnet/minecraft/class_1099;
      named BLOCK Lnet/minecraft/util/UseAction;BLOCK:Lnet/minecraft/util/UseAction;
    • BOW

      public static final UseAction BOW
      Mappings:
      Namespace Name Mixin selector
      official e Lano;e:Lano;
      intermediary field_9160 Lnet/minecraft/class_1099;field_9160:Lnet/minecraft/class_1099;
      named BOW Lnet/minecraft/util/UseAction;BOW:Lnet/minecraft/util/UseAction;
  • Constructor Details

    • UseAction

      private UseAction()
  • 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