Package net.minecraftforge.event.world
Class BlockEvent.FarmlandTrampleEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.world.BlockEvent
-
- net.minecraftforge.event.world.BlockEvent.FarmlandTrampleEvent
-
- Enclosing class:
- BlockEvent
public static class BlockEvent.FarmlandTrampleEvent extends BlockEvent
Fired when when farmland gets trampled This event isCancelable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.event.world.BlockEvent
BlockEvent.BlockToolInteractEvent, BlockEvent.BreakEvent, BlockEvent.CreateFluidSourceEvent, BlockEvent.CropGrowEvent, BlockEvent.EntityMultiPlaceEvent, BlockEvent.EntityPlaceEvent, BlockEvent.FarmlandTrampleEvent, BlockEvent.FluidPlaceBlockEvent, BlockEvent.NeighborNotifyEvent, BlockEvent.PortalSpawnEvent
-
-
Field Summary
Fields Modifier and Type Field Description private Entity
entity
private float
fallDistance
-
Constructor Summary
Constructors Constructor Description FarmlandTrampleEvent(World world, BlockPos pos, BlockState state, float fallDistance, Entity entity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Entity
getEntity()
float
getFallDistance()
-
Methods inherited from class net.minecraftforge.event.world.BlockEvent
getPos, getState, getWorld
-
-
-
-
Field Detail
-
entity
private final Entity entity
-
fallDistance
private final float fallDistance
-
-
Constructor Detail
-
FarmlandTrampleEvent
public FarmlandTrampleEvent(World world, BlockPos pos, BlockState state, float fallDistance, Entity entity)
-
-
Method Detail
-
getEntity
public Entity getEntity()
-
getFallDistance
public float getFallDistance()
-
-