Package net.minecraft.util
Enum Class ItemActionResult
- All Implemented Interfaces:
Serializable,Comparable<ItemActionResult>,Constable
- Mappings:
Namespace Name named net/minecraft/util/ItemActionResultintermediary net/minecraft/class_9062official bqt
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic ItemActionResultsuccess(boolean swingHand) static ItemActionResultReturns the enum constant of this class with the specified name.static ItemActionResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
SUCCESS
- Mappings:
Namespace Name Mixin selector named SUCCESSLnet/minecraft/util/ItemActionResult;SUCCESS:Lnet/minecraft/util/ItemActionResult;intermediary field_47728Lnet/minecraft/class_9062;field_47728:Lnet/minecraft/class_9062;official aLbqt;a:Lbqt;
-
CONSUME
- Mappings:
Namespace Name Mixin selector named CONSUMELnet/minecraft/util/ItemActionResult;CONSUME:Lnet/minecraft/util/ItemActionResult;intermediary field_47729Lnet/minecraft/class_9062;field_47729:Lnet/minecraft/class_9062;official bLbqt;b:Lbqt;
-
CONSUME_PARTIAL
- Mappings:
Namespace Name Mixin selector named CONSUME_PARTIALLnet/minecraft/util/ItemActionResult;CONSUME_PARTIAL:Lnet/minecraft/util/ItemActionResult;intermediary field_47730Lnet/minecraft/class_9062;field_47730:Lnet/minecraft/class_9062;official cLbqt;c:Lbqt;
-
PASS_TO_DEFAULT_BLOCK_INTERACTION
- Mappings:
Namespace Name Mixin selector named PASS_TO_DEFAULT_BLOCK_INTERACTIONLnet/minecraft/util/ItemActionResult;PASS_TO_DEFAULT_BLOCK_INTERACTION:Lnet/minecraft/util/ItemActionResult;intermediary field_47731Lnet/minecraft/class_9062;field_47731:Lnet/minecraft/class_9062;official dLbqt;d:Lbqt;
-
SKIP_DEFAULT_BLOCK_INTERACTION
- Mappings:
Namespace Name Mixin selector named SKIP_DEFAULT_BLOCK_INTERACTIONLnet/minecraft/util/ItemActionResult;SKIP_DEFAULT_BLOCK_INTERACTION:Lnet/minecraft/util/ItemActionResult;intermediary field_47732Lnet/minecraft/class_9062;field_47732:Lnet/minecraft/class_9062;official eLbqt;e:Lbqt;
-
FAIL
- Mappings:
Namespace Name Mixin selector named FAILLnet/minecraft/util/ItemActionResult;FAIL:Lnet/minecraft/util/ItemActionResult;intermediary field_47733Lnet/minecraft/class_9062;field_47733:Lnet/minecraft/class_9062;official fLbqt;f:Lbqt;
-
-
Constructor Details
-
ItemActionResult
private ItemActionResult()
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
isAccepted
public boolean isAccepted()- Mappings:
Namespace Name Mixin selector named isAcceptedLnet/minecraft/util/ItemActionResult;isAccepted()Zintermediary method_55643Lnet/minecraft/class_9062;method_55643()Zofficial aLbqt;a()Z
-
success
- Mappings:
Namespace Name Mixin selector named successLnet/minecraft/util/ItemActionResult;success(Z)Lnet/minecraft/util/ItemActionResult;intermediary method_55644Lnet/minecraft/class_9062;method_55644(Z)Lnet/minecraft/class_9062;official aLbqt;a(Z)Lbqt;
-
toActionResult
- Mappings:
Namespace Name Mixin selector named toActionResultLnet/minecraft/util/ItemActionResult;toActionResult()Lnet/minecraft/util/ActionResult;intermediary method_55645Lnet/minecraft/class_9062;method_55645()Lnet/minecraft/class_1269;official bLbqt;b()Lbqr;
-