Interface SoilRevertEvent
- All Superinterfaces:
Cancellable, Event, FarmingEvent
- All Known Subinterfaces:
SoilTrampleEvent
Fired when tilled soil is about to turn back into plain soil: it dried out with nothing planted
on it, a solid block covers it, or something trampled it.
Changing the reverted state changes what the soil turns into. Cancelling the event keeps the soil tilled.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionreverted()Returns the state the soil is about to turn into.voidsetReverted(BlockData reverted) Sets the state the soil turns into once the event is over.Methods inherited from interface Cancellable
isCancelled, setCancelledMethods inherited from interface FarmingEvent
block, position, world
-
Method Details
-
reverted
BlockData reverted()Returns the state the soil is about to turn into.- Returns:
- the state the soil is about to turn into
- Since:
- 0.1.0
-
setReverted
Sets the state the soil turns into once the event is over.- Parameters:
reverted- the state to write- Since:
- 0.1.0
-