public interface ChangeBlockEvent extends TargetWorldEvent, Cancellable, CauseTracked
BlockState
s at Location
s are being
changed.Modifier and Type | Method and Description |
---|---|
List<BlockTransaction> |
filter(Predicate<Location<World>> predicate)
Applies the provided
Predicate to the List of
BlockTransaction s from getTransactions() such that
any time that Predicate.apply(Object) returns false
on a BlockTransaction , the BlockTransaction is
marked as "invalid" and will not apply post event. |
List<BlockTransaction> |
filterAll()
Invalidates the list as such that all
BlockTransaction s are
marked as "invalid" and will not apply post event. |
List<BlockTransaction> |
getTransactions()
Gets a list of the
BlockTransaction s for this event. |
getTargetWorld
getCallbacks
isCancelled, setCancelled
getCause
List<BlockTransaction> getTransactions()
BlockTransaction
s for this event. If a
transaction is requested to be marked as "invalid",
BlockTransaction.setIsValid(boolean)
can be used.List<BlockTransaction> filter(Predicate<Location<World>> predicate)
Predicate
to the List
of
BlockTransaction
s from getTransactions()
such that
any time that Predicate.apply(Object)
returns false
on a BlockTransaction
, the BlockTransaction
is
marked as "invalid" and will not apply post event.predicate
- The predicate to use for filteringList<BlockTransaction> filterAll()
BlockTransaction
s are
marked as "invalid" and will not apply post event.