yarn/mappings/net/minecraft/util/ActionResult.mapping

35 lines
1.7 KiB
Plaintext

CLASS net/minecraft/class_1269 net/minecraft/util/ActionResult
COMMENT An enum indicating the hand interaction's result. Methods called on hand interaction,
COMMENT such as {@link net.minecraft.block.AbstractBlock#onUse}, return this.
COMMENT
COMMENT @see TypedActionResult
FIELD field_21466 Lnet/minecraft/class_1269;
COMMENT Indicates an action is performed but no animation should accompany the
COMMENT performance.
FIELD field_33562 Lnet/minecraft/class_1269;
COMMENT Indicates an action is performed but no animation should accompany the
COMMENT performance and no statistic should be incremented.
FIELD field_5811 Lnet/minecraft/class_1269;
COMMENT Indicates an action is not performed but allows other actions to
COMMENT perform.
FIELD field_5812 Lnet/minecraft/class_1269;
COMMENT Indicates an action is performed and the actor's hand should swing to
COMMENT indicate the performance.
FIELD field_5814 Lnet/minecraft/class_1269;
COMMENT Indicates that an action is not performed and prevents other actions
COMMENT from performing.
METHOD method_23665 isAccepted ()Z
COMMENT {@return whether an action is performed}
METHOD method_23666 shouldSwingHand ()Z
COMMENT {@return whether an actor should have a hand-swinging animation on
COMMENT action performance}
METHOD method_29236 success (Z)Lnet/minecraft/class_1269;
COMMENT {@return an action result indicating success}
COMMENT
COMMENT <p>This returns {@link #SUCCESS} if {@code swingHand} is {@code true}, otherwise
COMMENT {@link #CONSUME}.
ARG 0 swingHand
METHOD method_36360 shouldIncrementStat ()Z
COMMENT {@return whether action performance should increment an item's "used"
COMMENT statistic}