Package net.minecraftforge.event.entity
Class EntityMobGriefingEvent
- java.lang.Object
-
- net.minecraftforge.eventbus.api.Event
-
- net.minecraftforge.event.entity.EntityEvent
-
- net.minecraftforge.event.entity.EntityMobGriefingEvent
-
public class EntityMobGriefingEvent extends EntityEvent
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 themobGriefinggame rule is checked.
This event has aresult:Event.Result.ALLOWmeans this instance of mob griefing is allowed.Event.Result.DEFAULTmeans themobGriefinggame rule is used to determine the behaviour.Event.Result.DENYmeans this instance of mob griefing is not allowed.
This event is fired on theMinecraftForge.EVENT_BUS.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringChunk, EntityEvent.EntityConstructing, EntityEvent.Size
-
-
Constructor Summary
Constructors Constructor Description EntityMobGriefingEvent(Entity entity)
-
Method Summary
-
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntity
-
-
-
-
Constructor Detail
-
EntityMobGriefingEvent
public EntityMobGriefingEvent(Entity entity)
-
-