public class LivingDestroyBlockEvent extends LivingEvent
Block#canEntityDestroy(IBlockState, IBlockAccess, BlockPos, Entity)
Cancelable
.HasResult
MinecraftForge.EVENT_BUS
.LivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Modifier and Type | Field and Description |
---|---|
private BlockPos |
pos |
private BlockState |
state |
Constructor and Description |
---|
LivingDestroyBlockEvent(LivingEntity entity,
BlockPos pos,
BlockState state) |
Modifier and Type | Method and Description |
---|---|
BlockPos |
getPos() |
BlockState |
getState() |
getEntityLiving
getEntity
private final BlockPos pos
private final BlockState state
public LivingDestroyBlockEvent(LivingEntity entity, BlockPos pos, BlockState state)
public BlockState getState()
public BlockPos getPos()