Package net.minecraft.util
Interface ActionResult
- All Known Implementing Classes:
ActionResult.class_9857,ActionResult.class_9859,ActionResult.class_9860,ActionResult.class_9862
public interface ActionResult
An enum indicating the hand interaction's result. Methods called on hand interaction,
such as
AbstractBlock.onUse(net.minecraft.block.BlockState, net.minecraft.world.World, net.minecraft.util.math.BlockPos, net.minecraft.entity.player.PlayerEntity, net.minecraft.util.hit.BlockHitResult), return this.- See Also:
- Mappings:
Namespace Name named net/minecraft/util/ActionResultintermediary net/minecraft/class_1269official brk
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final recordstatic final recordstatic final recordstatic final recordstatic enumstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ActionResult.class_9860Indicates an action is performed but no animation should accompany the performance.static final ActionResult.class_9860static final ActionResult.class_9862static final ActionResult.class_9859Indicates an action is not performed but allows other actions to perform.static final ActionResult.class_9860Indicates an action is performed and the actor's hand should swing to indicate the performance.static final ActionResult.class_9857Indicates that an action is not performed and prevents other actions from performing. -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanReturns whether an action is performed.
-
Field Details
-
field_5812
Indicates an action is performed and the actor's hand should swing to indicate the performance.- Mappings:
Namespace Name Mixin selector named field_5812Lnet/minecraft/util/ActionResult;field_5812:Lnet/minecraft/util/ActionResult$class_9860;intermediary field_5812Lnet/minecraft/class_1269;field_5812:Lnet/minecraft/class_1269$class_9860;official aLbrk;a:Lbrk$d;
-
field_52422
- Mappings:
Namespace Name Mixin selector named field_52422Lnet/minecraft/util/ActionResult;field_52422:Lnet/minecraft/util/ActionResult$class_9860;intermediary field_52422Lnet/minecraft/class_1269;field_52422:Lnet/minecraft/class_1269$class_9860;official bLbrk;b:Lbrk$d;
-
field_21466
Indicates an action is performed but no animation should accompany the performance.- Mappings:
Namespace Name Mixin selector named field_21466Lnet/minecraft/util/ActionResult;field_21466:Lnet/minecraft/util/ActionResult$class_9860;intermediary field_21466Lnet/minecraft/class_1269;field_21466:Lnet/minecraft/class_1269$class_9860;official cLbrk;c:Lbrk$d;
-
field_5814
Indicates that an action is not performed and prevents other actions from performing.- Mappings:
Namespace Name Mixin selector named field_5814Lnet/minecraft/util/ActionResult;field_5814:Lnet/minecraft/util/ActionResult$class_9857;intermediary field_5814Lnet/minecraft/class_1269;field_5814:Lnet/minecraft/class_1269$class_9857;official dLbrk;d:Lbrk$a;
-
field_5811
Indicates an action is not performed but allows other actions to perform.- Mappings:
Namespace Name Mixin selector named field_5811Lnet/minecraft/util/ActionResult;field_5811:Lnet/minecraft/util/ActionResult$class_9859;intermediary field_5811Lnet/minecraft/class_1269;field_5811:Lnet/minecraft/class_1269$class_9859;official eLbrk;e:Lbrk$c;
-
field_52423
- Mappings:
Namespace Name Mixin selector named field_52423Lnet/minecraft/util/ActionResult;field_52423:Lnet/minecraft/util/ActionResult$class_9862;intermediary field_52423Lnet/minecraft/class_1269;field_52423:Lnet/minecraft/class_1269$class_9862;official fLbrk;f:Lbrk$f;
-
-
Method Details
-
isAccepted
default boolean isAccepted()Returns whether an action is performed.- Returns:
- whether an action is performed
- Mappings:
Namespace Name Mixin selector named isAcceptedLnet/minecraft/util/ActionResult;isAccepted()Zintermediary method_23665Lnet/minecraft/class_1269;method_23665()Zofficial aLbrk;a()Z
-