Interface InteractBlockEvent.Secondary
- All Superinterfaces:
Event, InteractBlockEvent, InteractEvent
- All Known Subinterfaces:
InteractBlockEvent.Secondary.Post, InteractBlockEvent.Secondary.Pre
- Enclosing interface:
InteractBlockEvent
An event where the targeted block is being interacted with the client's
"secondary" button.
This is usually right-click.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfacestatic interfaceNested classes/interfaces inherited from interface InteractBlockEvent
InteractBlockEvent.Primary, InteractBlockEvent.Secondary -
Method Summary
Modifier and TypeMethodDescriptionGets the point of interaction where the interaction occurred as aVector3d.Gets the originaluseBlockResult().Gets whether the interactedBlockSnapshotshould be used.Gets whether theArmorEquipable.itemInHand(Supplier)should be used.Methods inherited from interface InteractBlockEvent
block, targetSide
-
Method Details
-
originalUseItemResult
Tristate originalUseItemResult() -
originalUseBlockResult
Tristate originalUseBlockResult()Gets the originaluseBlockResult().- Returns:
- The original
useBlockResult()
-
useItemResult
Tristate useItemResult()Gets whether theArmorEquipable.itemInHand(Supplier)should be used.- FALSE: The
ItemStackwill never be used. - UNDEFINED: The
ItemStackwill be used if the block fails. - TRUE: The
ItemStackwill always be used.
Note: These results may differ depending on implementation.
- Returns:
- Whether the
ArmorEquipable.itemInHand(Supplier)should be used
- FALSE: The
-
useBlockResult
Tristate useBlockResult()Gets whether the interactedBlockSnapshotshould be used.- FALSE:
BlockSnapshotwill never be used. - UNDEFINED:
BlockSnapshotwill be used as normal. - TRUE:
BlockSnapshotwill always be used.
Note: These results may differ depending on implementation.
- Returns:
- Whether the interacted
BlockSnapshotshould be used
- FALSE:
-
interactionPoint
-