public static interface ChangeBlockEvent.Pre extends Event, Cancellable
Location's such as BlockTypes.FLOWING_WATER.| Modifier and Type | Method and Description |
|---|---|
List<Location<World>> |
getLocations()
Represents a list of one or more
Location's where
BlockState changes can occur. |
getCause, getContext, getSourceisCancelled, setCancelledList<Location<World>> getLocations()
Location's where
BlockState changes can occur.
Canceling this event will prevent block logic from running
and also stop BlockSnapshot's from being generated.
Note: This event is not intended to always be fired before
changing a BlockState but rather it is primarily used to
prevent one or more BlockState's from being changed.