Interface | Description |
---|---|
ChangeBlockEvent |
Base event for when
BlockState s at Location s are being
changed. |
ChangeBlockEvent.Break |
Called when
BlockState s at Location s are
being broke. |
ChangeBlockEvent.Decay |
Called when specific
BlockType s have a notion of "decaying"
for various reasons such that the changes are always caused by
themselves. |
ChangeBlockEvent.Grow |
Called when a
BlockType decides to "grow" either other
blocks or itself or both. |
ChangeBlockEvent.Modify |
Called when one or more
BlockType s are modified in the world. |
ChangeBlockEvent.Place |
Called when one or more
BlockType s are added to the world. |
ChangeBlockEvent.Post |
Called when there are multiple block changes due to a
BlockType having "ticked", in which the Cause will
have a BlockSnapshot , or, in the case that an Entity
has "ticked", in which the Cause will have an Entity ,
or, in the case that a TileEntity "ticked", the Cause
will have the TileEntity . |
ChangeBlockEvent.Pre |
Called before running specific block logic at one or more
Location 's such as BlockTypes.FLOWING_WATER . |
CollideBlockEvent |
Fired when an
Entity collides with a BlockSnapshot . |
CollideBlockEvent.Impact |
Fired when an
Entity impacts another BlockSnapshot . |
InteractBlockEvent |
Base event for all interactions involving a
BlockSnapshot at a
Location . |
InteractBlockEvent.Primary |
An event where the targeted block is being interacted with the client's
"primary" button.
|
InteractBlockEvent.Primary.MainHand |
A
InteractBlockEvent.Primary event where the interaction is from the client's main hand. |
InteractBlockEvent.Primary.OffHand |
A
InteractBlockEvent.Primary event where the interaction is from the client's off hand. |
InteractBlockEvent.Secondary |
An event where the targeted block is being interacted with the client's
"secondary" button.
|
InteractBlockEvent.Secondary.MainHand |
A
InteractBlockEvent.Secondary event where the interaction is from the client's main hand. |
InteractBlockEvent.Secondary.OffHand |
A
InteractBlockEvent.Secondary event where the interaction is from the client's off hand. |
NotifyNeighborBlockEvent |
Called when a block triggers an update to neighboring {link BlockType}s in
one or more
Direction s. |
TargetBlockEvent |
Base event for when a
BlockSnapshot is a target. |
TickBlockEvent |
Called when a
BlockState receives a tick. |
TickBlockEvent.Random |
An event when a block is told to "randomly" tick.
|
TickBlockEvent.Scheduled |
An event when a block at a
Location is scheduled to tick. |