Package net.minecraft.util
Enum Class ItemActionResult
- All Implemented Interfaces:
Serializable
,Comparable<ItemActionResult>
,Constable
- Mappings:
Namespace Name named net/minecraft/util/ItemActionResult
intermediary net/minecraft/class_9062
official bqy
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static ItemActionResult
success
(boolean swingHand) static ItemActionResult
Returns 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 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
- 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
- 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
- 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
- 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
- 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
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 isAccepted
Lnet/minecraft/util/ItemActionResult;isAccepted()Z
intermediary method_55643
Lnet/minecraft/class_9062;method_55643()Z
official a
Lbqy;a()Z
-
success
- 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
- 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;
-