Interface InteractBlockEvent.Secondary.Post
- All Superinterfaces:
Cancellable,CompositeEvent<InteractBlockEvent.Secondary>,Event,InteractBlockEvent,InteractBlockEvent.Secondary,InteractEvent
- Enclosing interface:
InteractBlockEvent.Secondary
public static interface InteractBlockEvent.Secondary.Post
extends InteractBlockEvent.Secondary, CompositeEvent<InteractBlockEvent.Secondary>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.spongepowered.api.event.block.InteractBlockEvent
InteractBlockEvent.Primary, InteractBlockEvent.SecondaryNested classes/interfaces inherited from interface org.spongepowered.api.event.block.InteractBlockEvent.Secondary
InteractBlockEvent.Secondary.Post, InteractBlockEvent.Secondary.Pre -
Method Summary
Modifier and TypeMethodDescriptiondefault BlockSnapshotblock()Gets theBlockSnapshot.default Vector3dGets the point of interaction where the interaction occurred as aVector3d.default TristateGets the originalInteractBlockEvent.Secondary.useBlockResult().default Tristatedefault DirectionGets the target "side" of theBlockStatebeing interacted with orDirection.NONEif not known.default TristateGets whether the interactedBlockSnapshotshould be used.default TristateGets whether theArmorEquipable.itemInHand(java.util.function.Supplier<? extends org.spongepowered.api.data.type.HandType>)should be used.Methods inherited from interface org.spongepowered.api.event.Cancellable
isCancelledMethods inherited from interface org.spongepowered.api.event.CompositeEvent
applyTo, baseEvent, children, event, setCancelled
-
Method Details
-
originalUseItemResult
- Specified by:
originalUseItemResultin interfaceInteractBlockEvent.Secondary
-
originalUseBlockResult
Description copied from interface:InteractBlockEvent.SecondaryGets the originalInteractBlockEvent.Secondary.useBlockResult().- Specified by:
originalUseBlockResultin interfaceInteractBlockEvent.Secondary- Returns:
- The original
InteractBlockEvent.Secondary.useBlockResult()
-
useItemResult
Description copied from interface:InteractBlockEvent.SecondaryGets whether theArmorEquipable.itemInHand(java.util.function.Supplier<? extends org.spongepowered.api.data.type.HandType>)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.
- Specified by:
useItemResultin interfaceInteractBlockEvent.Secondary- Returns:
- Whether the
ArmorEquipable.itemInHand(java.util.function.Supplier<? extends org.spongepowered.api.data.type.HandType>)should be used
- FALSE: The
-
useBlockResult
Description copied from interface:InteractBlockEvent.SecondaryGets 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.
- Specified by:
useBlockResultin interfaceInteractBlockEvent.Secondary- Returns:
- Whether the interacted
BlockSnapshotshould be used
- FALSE:
-
interactionPoint
Description copied from interface:InteractBlockEvent.SecondaryGets the point of interaction where the interaction occurred as aVector3d.- Specified by:
interactionPointin interfaceInteractBlockEvent.Secondary- Returns:
- The interaction point
-
block
Description copied from interface:InteractBlockEventGets theBlockSnapshot.- Specified by:
blockin interfaceInteractBlockEvent- Returns:
- The block snapshot
-
targetSide
Description copied from interface:InteractBlockEventGets the target "side" of theBlockStatebeing interacted with orDirection.NONEif not known.- Specified by:
targetSidein interfaceInteractBlockEvent- Returns:
- An optional containing the side being interacted with or
Direction.NONE
-