public class EntityMobGriefingEvent extends EntityEvent
mobGriefing
game rule is checked.result
:
Result#ALLOW
means this instance of mob griefing is allowed.Result#DEFAULT
means the mobGriefing
game rule is used to determine the behaviour.Result#DENY
means this instance of mob griefing is not allowed.MinecraftForge.EVENT_BUS
.EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.EyeHeight
Constructor and Description |
---|
EntityMobGriefingEvent(Entity entity) |
getEntity
public EntityMobGriefingEvent(Entity entity)