Enum Class ActionResult.SwingSource

java.lang.Object
java.lang.Enum<ActionResult.SwingSource>
net.minecraft.util.ActionResult.SwingSource
All Implemented Interfaces:
Serializable, Comparable<ActionResult.SwingSource>, Constable
Enclosing interface:
ActionResult

public static enum ActionResult.SwingSource extends Enum<ActionResult.SwingSource>
Represents the side that should be considered the source of truth for an arm swing, if any.
Mappings:
Namespace Name
named net/minecraft/util/ActionResult$SwingSource
intermediary net/minecraft/class_1269$class_9861
official bti$e
  • Enum Constant Details

    • NONE

      public static final ActionResult.SwingSource NONE
      Mappings:
      Namespace Name Mixin selector
      named NONE Lnet/minecraft/util/ActionResult$SwingSource;NONE:Lnet/minecraft/util/ActionResult$SwingSource;
      intermediary field_52426 Lnet/minecraft/class_1269$class_9861;field_52426:Lnet/minecraft/class_1269$class_9861;
      official a Lbti$e;a:Lbti$e;
    • CLIENT

      public static final ActionResult.SwingSource CLIENT
      Mappings:
      Namespace Name Mixin selector
      named CLIENT Lnet/minecraft/util/ActionResult$SwingSource;CLIENT:Lnet/minecraft/util/ActionResult$SwingSource;
      intermediary field_52427 Lnet/minecraft/class_1269$class_9861;field_52427:Lnet/minecraft/class_1269$class_9861;
      official b Lbti$e;b:Lbti$e;
    • SERVER

      public static final ActionResult.SwingSource SERVER
      Mappings:
      Namespace Name Mixin selector
      named SERVER Lnet/minecraft/util/ActionResult$SwingSource;SERVER:Lnet/minecraft/util/ActionResult$SwingSource;
      intermediary field_52428 Lnet/minecraft/class_1269$class_9861;field_52428:Lnet/minecraft/class_1269$class_9861;
      official c Lbti$e;c:Lbti$e;
  • Constructor Details

    • SwingSource

      private SwingSource()
  • Method Details

    • values

      public static ActionResult.SwingSource[] 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 ActionResult.SwingSource 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