Interface SoilTrampleEvent
- All Superinterfaces:
Cancellable, Event, FarmingEvent, SoilRevertEvent
Fired when an entity landing on tilled soil is about to trample it back into plain soil, which
also uproots what grows on it.
It is a SoilRevertEvent: a listener of that event receives this one too. Cancelling
the event keeps the soil tilled.
- Since:
- 0.1.0
-
Method Summary
Modifier and TypeMethodDescriptionentity()Returns the entity that landed on the soil.doubleReturns how far the entity fell, in blocks.Methods inherited from interface Cancellable
isCancelled, setCancelledMethods inherited from interface FarmingEvent
block, position, worldMethods inherited from interface SoilRevertEvent
reverted, setReverted
-
Method Details
-
entity
Entity entity()Returns the entity that landed on the soil.- Returns:
- the entity that landed on the soil
- Since:
- 0.1.0
-
fallDistance
double fallDistance()Returns how far the entity fell, in blocks.- Returns:
- how far the entity fell, in blocks
- Since:
- 0.1.0
-