Interface InteractBlockEvent
-
- All Superinterfaces:
Event,InteractEvent
- All Known Subinterfaces:
InteractBlockEvent.Primary,InteractBlockEvent.Primary.Finish,InteractBlockEvent.Primary.Start,InteractBlockEvent.Primary.Stop,InteractBlockEvent.Secondary
public interface InteractBlockEvent extends InteractEvent
Base event for all interactions involving aBlockSnapshotat aServerLocation.Note: Any interaction that occurs within
BlockTypes.AIRwhere theServerLocationis not known, will contain aBlockSnapshot.empty().
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceInteractBlockEvent.PrimaryAn event where the targeted block is being interacted with the client's "primary" button.static interfaceInteractBlockEvent.SecondaryAn event where the targeted block is being interacted with the client's "secondary" button.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BlockSnapshotblock()Gets theBlockSnapshot.DirectiontargetSide()Gets the target "side" of theBlockStatebeing interacted with orDirection.NONEif not known.
-
-
-
Method Detail
-
block
BlockSnapshot block()
Gets theBlockSnapshot.- Returns:
- The block snapshot
-
targetSide
Direction targetSide()
Gets the target "side" of theBlockStatebeing interacted with orDirection.NONEif not known.- Returns:
- An optional containing the side being interacted with or
Direction.NONE
-
-