Package net.minecraft.util
Enum Class ItemActionResult
- All Implemented Interfaces:
Serializable,Comparable<ItemActionResult>,Constable
- Mappings:
Namespace Name official bohintermediary net/minecraft/class_9062named net/minecraft/util/ItemActionResult
-
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 official aLboh;a:Lboh;intermediary field_47728Lnet/minecraft/class_9062;field_47728:Lnet/minecraft/class_9062;named SUCCESSLnet/minecraft/util/ItemActionResult;SUCCESS:Lnet/minecraft/util/ItemActionResult;
-
CONSUME
- Mappings:
Namespace Name Mixin selector official bLboh;b:Lboh;intermediary field_47729Lnet/minecraft/class_9062;field_47729:Lnet/minecraft/class_9062;named CONSUMELnet/minecraft/util/ItemActionResult;CONSUME:Lnet/minecraft/util/ItemActionResult;
-
CONSUME_PARTIAL
- Mappings:
Namespace Name Mixin selector official cLboh;c:Lboh;intermediary field_47730Lnet/minecraft/class_9062;field_47730:Lnet/minecraft/class_9062;named CONSUME_PARTIALLnet/minecraft/util/ItemActionResult;CONSUME_PARTIAL:Lnet/minecraft/util/ItemActionResult;
-
PASS_TO_DEFAULT_BLOCK_INTERACTION
- Mappings:
Namespace Name Mixin selector official dLboh;d:Lboh;intermediary field_47731Lnet/minecraft/class_9062;field_47731:Lnet/minecraft/class_9062;named PASS_TO_DEFAULT_BLOCK_INTERACTIONLnet/minecraft/util/ItemActionResult;PASS_TO_DEFAULT_BLOCK_INTERACTION:Lnet/minecraft/util/ItemActionResult;
-
SKIP_DEFAULT_BLOCK_INTERACTION
- Mappings:
Namespace Name Mixin selector official eLboh;e:Lboh;intermediary field_47732Lnet/minecraft/class_9062;field_47732:Lnet/minecraft/class_9062;named SKIP_DEFAULT_BLOCK_INTERACTIONLnet/minecraft/util/ItemActionResult;SKIP_DEFAULT_BLOCK_INTERACTION:Lnet/minecraft/util/ItemActionResult;
-
FAIL
- Mappings:
Namespace Name Mixin selector official fLboh;f:Lboh;intermediary field_47733Lnet/minecraft/class_9062;field_47733:Lnet/minecraft/class_9062;named FAILLnet/minecraft/util/ItemActionResult;FAIL:Lnet/minecraft/util/ItemActionResult;
-
-
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 official aLboh;a()Zintermediary method_55643Lnet/minecraft/class_9062;method_55643()Znamed isAcceptedLnet/minecraft/util/ItemActionResult;isAccepted()Z
-
success
- Mappings:
Namespace Name Mixin selector official aLboh;a(Z)Lboh;intermediary method_55644Lnet/minecraft/class_9062;method_55644(Z)Lnet/minecraft/class_9062;named successLnet/minecraft/util/ItemActionResult;success(Z)Lnet/minecraft/util/ItemActionResult;
-
toActionResult
- Mappings:
Namespace Name Mixin selector official bLboh;b()Lbof;intermediary method_55645Lnet/minecraft/class_9062;method_55645()Lnet/minecraft/class_1269;named toActionResultLnet/minecraft/util/ItemActionResult;toActionResult()Lnet/minecraft/util/ActionResult;
-