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
Event.HasResult, Event.Result
Modifier and Type | Field and Description |
---|---|
private BlockPos |
pos |
private IBlockState |
state |
Constructor and Description |
---|
LivingDestroyBlockEvent(EntityLivingBase entity,
BlockPos pos,
IBlockState state) |
Modifier and Type | Method and Description |
---|---|
BlockPos |
getPos() |
IBlockState |
getState() |
getEntityLiving
getEntity
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
private final BlockPos pos
private final IBlockState state
public LivingDestroyBlockEvent(EntityLivingBase entity, BlockPos pos, IBlockState state)
public IBlockState getState()
public BlockPos getPos()