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
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.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.
MinecraftForge.EVENT_BUS.-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
EntityEvent.CanUpdate, EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.SizeNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class net.minecraftforge.event.entity.EntityEvent
getEntityMethods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
-
Constructor Details
-
EntityMobGriefingEvent
-