Interface SoilTillEvent
- All Superinterfaces:
Cancellable, Event, FarmingEvent
Fired when a player is about to till a block with a hoe:
FarmingEvent.block() is the soil as it is,
tilled() what it is about to become.
Changing the tilled state changes what the soil turns into. Cancelling the event leaves the soil as it is, and the hoe unworn.
- Since:
- 0.1.0
- See Also:
-
Method Summary
Methods inherited from interface Cancellable
isCancelled, setCancelledMethods inherited from interface FarmingEvent
block, position, world
-
Method Details
-
player
Player player()Returns the player tilling the soil.- Returns:
- the player tilling the soil
- Since:
- 0.1.0
-
tool
ItemStack tool()Returns the hoe the soil is tilled with.- Returns:
- the hoe the soil is tilled with
- Since:
- 0.1.0
-
tilled
BlockData tilled()Returns the state the soil is about to turn into.- Returns:
- the state the soil is about to turn into
- Since:
- 0.1.0
-
setTilled
Sets the state the soil turns into once the event is over.- Parameters:
tilled- the state to write- Since:
- 0.1.0
-