类 EntityMobGriefingEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.EntityMobGriefingEvent
EntityMobGriefingEvent is fired when mob griefing is about to occur and allows an event listener to specify whether it should or not.
This event is fired when ever the
This event has a
This event is fired when ever the
mobGriefing
game rule is checked.This event has a
result
:
Event.Result.ALLOW
means this instance of mob griefing is allowed.Event.Result.DEFAULT
means themobGriefing
game rule is used to determine the behaviour.Event.Result.DENY
means this instance of mob griefing is not allowed.
MinecraftForge.EVENT_BUS
.-
嵌套类概要
从类继承的嵌套类/接口 net.minecraftforge.event.entity.EntityEvent
EntityEvent.EnteringSection, EntityEvent.EntityConstructing
从类继承的嵌套类/接口 net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
构造器概要
构造器 -
方法概要
从类继承的方法 net.minecraftforge.event.entity.EntityEvent
getEntity
从类继承的方法 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
构造器详细资料
-
EntityMobGriefingEvent
-