Interface ChangeBlockEvent.Post
-
- All Superinterfaces:
ChangeBlockEvent
,Event
- Enclosing interface:
- ChangeBlockEvent
public static interface ChangeBlockEvent.Post extends ChangeBlockEvent
Called when there are multiple block changes due to aBlockType
having "ticked", in which theCause
will have aBlockSnapshot
, or, in the case that anEntity
has "ticked", in which theCause
will have anEntity
, or, in the case that aBlockEntity
"ticked", theCause
will have theBlockEntity
.The
Cause
may containEvent
s, such asChangeBlockEvent.All
,NotifyNeighborBlockEvent
, andChangeBlockEvent.Pre
. These events may be cancelled, or have their transactions modified, just like normal events, but this event is set in stone (pun intended) with regards to the representative state the world is in. Any Post is considered the "truth" of what happened, after allChangeBlockEvent.All
events may have been thrown for a particular cause, during some logic, so as to simplify how many batched events need to be thrown compared to the work being performed.For example, a piston extension would cause this event to be fired. A piston extension involves multiple distinct transactions - the piston head moving, and the adjacent block being set in a new position.
Note: This event is fired after processing all other ChangeBlockEvent's.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.spongepowered.api.event.block.ChangeBlockEvent
ChangeBlockEvent.All, ChangeBlockEvent.Post, ChangeBlockEvent.Pre
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<BlockTransactionReceipt>
receipts()
-
Methods inherited from interface org.spongepowered.api.event.block.ChangeBlockEvent
world
-
-
-
-
Method Detail
-
receipts
List<BlockTransactionReceipt> receipts()
-
-