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
Event.HasResult, Event.Result
コンストラクタと説明 |
---|
EntityMobGriefingEvent(Entity entity) |
getEntity
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
public EntityMobGriefingEvent(Entity entity)