Enum Class ItemActionResult

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

public enum ItemActionResult extends Enum<ItemActionResult>
Mappings:
Namespace Name
official bpo
intermediary net/minecraft/class_9062
named net/minecraft/util/ItemActionResult
  • Enum Constant Details

    • SUCCESS

      public static final ItemActionResult SUCCESS
      Mappings:
      Namespace Name Mixin selector
      official a Lbpo;a:Lbpo;
      intermediary field_47728 Lnet/minecraft/class_9062;field_47728:Lnet/minecraft/class_9062;
      named SUCCESS Lnet/minecraft/util/ItemActionResult;SUCCESS:Lnet/minecraft/util/ItemActionResult;
    • CONSUME

      public static final ItemActionResult CONSUME
      Mappings:
      Namespace Name Mixin selector
      official b Lbpo;b:Lbpo;
      intermediary field_47729 Lnet/minecraft/class_9062;field_47729:Lnet/minecraft/class_9062;
      named CONSUME Lnet/minecraft/util/ItemActionResult;CONSUME:Lnet/minecraft/util/ItemActionResult;
    • CONSUME_PARTIAL

      public static final ItemActionResult CONSUME_PARTIAL
      Mappings:
      Namespace Name Mixin selector
      official c Lbpo;c:Lbpo;
      intermediary field_47730 Lnet/minecraft/class_9062;field_47730:Lnet/minecraft/class_9062;
      named CONSUME_PARTIAL Lnet/minecraft/util/ItemActionResult;CONSUME_PARTIAL:Lnet/minecraft/util/ItemActionResult;
    • PASS_TO_DEFAULT_BLOCK_INTERACTION

      public static final ItemActionResult PASS_TO_DEFAULT_BLOCK_INTERACTION
      Mappings:
      Namespace Name Mixin selector
      official d Lbpo;d:Lbpo;
      intermediary field_47731 Lnet/minecraft/class_9062;field_47731:Lnet/minecraft/class_9062;
      named PASS_TO_DEFAULT_BLOCK_INTERACTION Lnet/minecraft/util/ItemActionResult;PASS_TO_DEFAULT_BLOCK_INTERACTION:Lnet/minecraft/util/ItemActionResult;
    • SKIP_DEFAULT_BLOCK_INTERACTION

      public static final ItemActionResult SKIP_DEFAULT_BLOCK_INTERACTION
      Mappings:
      Namespace Name Mixin selector
      official e Lbpo;e:Lbpo;
      intermediary field_47732 Lnet/minecraft/class_9062;field_47732:Lnet/minecraft/class_9062;
      named SKIP_DEFAULT_BLOCK_INTERACTION Lnet/minecraft/util/ItemActionResult;SKIP_DEFAULT_BLOCK_INTERACTION:Lnet/minecraft/util/ItemActionResult;
    • FAIL

      public static final ItemActionResult FAIL
      Mappings:
      Namespace Name Mixin selector
      official f Lbpo;f:Lbpo;
      intermediary field_47733 Lnet/minecraft/class_9062;field_47733:Lnet/minecraft/class_9062;
      named FAIL Lnet/minecraft/util/ItemActionResult;FAIL:Lnet/minecraft/util/ItemActionResult;
  • Constructor Details

    • ItemActionResult

      private ItemActionResult()
  • Method Details

    • values

      public static ItemActionResult[] 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 ItemActionResult 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
    • isAccepted

      public boolean isAccepted()
      Mappings:
      Namespace Name Mixin selector
      official a Lbpo;a()Z
      intermediary method_55643 Lnet/minecraft/class_9062;method_55643()Z
      named isAccepted Lnet/minecraft/util/ItemActionResult;isAccepted()Z
    • success

      public static ItemActionResult success(boolean swingHand)
      Mappings:
      Namespace Name Mixin selector
      official a Lbpo;a(Z)Lbpo;
      intermediary method_55644 Lnet/minecraft/class_9062;method_55644(Z)Lnet/minecraft/class_9062;
      named success Lnet/minecraft/util/ItemActionResult;success(Z)Lnet/minecraft/util/ItemActionResult;
    • toActionResult

      public ActionResult toActionResult()
      Mappings:
      Namespace Name Mixin selector
      official b Lbpo;b()Lbpm;
      intermediary method_55645 Lnet/minecraft/class_9062;method_55645()Lnet/minecraft/class_1269;
      named toActionResult Lnet/minecraft/util/ItemActionResult;toActionResult()Lnet/minecraft/util/ActionResult;