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
named net/minecraft/util/ItemActionResult
intermediary net/minecraft/class_9062
official bqy
  • Enum Constant Details

    • SUCCESS

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

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

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

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

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

      public static final ItemActionResult FAIL
      Mappings:
      Namespace Name Mixin selector
      named FAIL Lnet/minecraft/util/ItemActionResult;FAIL:Lnet/minecraft/util/ItemActionResult;
      intermediary field_47733 Lnet/minecraft/class_9062;field_47733:Lnet/minecraft/class_9062;
      official f Lbqy;f:Lbqy;
  • 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
      named isAccepted Lnet/minecraft/util/ItemActionResult;isAccepted()Z
      intermediary method_55643 Lnet/minecraft/class_9062;method_55643()Z
      official a Lbqy;a()Z
    • success

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

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