Interface InteractionEvent.FarmlandTrample
- Enclosing interface:
 - InteractionEvent
 
public static interface InteractionEvent.FarmlandTrample
- 
Method Summary
Modifier and TypeMethodDescriptiontrample(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, float distance, net.minecraft.world.entity.Entity entity) Invoked when an entity attempts to trample farmland. 
- 
Method Details
- 
trample
EventResult trample(net.minecraft.world.level.Level world, net.minecraft.core.BlockPos pos, net.minecraft.world.level.block.state.BlockState state, float distance, net.minecraft.world.entity.Entity entity) Invoked when an entity attempts to trample farmland. Equivalent to Forge'sBlockEvent.FarmlandTrampleEventevent.- Parameters:
 world- The level where the block and the player are located in.pos- The position of the block.state- The state of the block.distance- The distance of the player to the block.entity- The entity trampling.- Returns:
 - The event callback result.
 
 
 -