Class LivingSpawnEvent.AllowDespawn
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.LivingEvent
net.minecraftforge.event.entity.living.LivingSpawnEvent
net.minecraftforge.event.entity.living.LivingSpawnEvent.AllowDespawn
- Enclosing class:
- LivingSpawnEvent
This event is fired for a
Mob that can despawn each mob tick.
This event only fires if a mob can be allowed to despawn and will not
otherwise fire if a despawn is certain.
This event is not cancellable, but does have a result.
Event.Result.DEFAULT indicates that default despawn mechanics should be used.
Event.Result.ALLOW indicates that the mob should forcefully despawn.
Event.Result.DENY indicates that the mob should forcefully stay spawned.
This event is fired on the main Forge event bus, only on the logical server.
- Author:
- cpw
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingSpawnEvent
LivingSpawnEvent.AllowDespawn, LivingSpawnEvent.CheckSpawn, LivingSpawnEvent.SpecialSpawnNested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEvent
LivingEvent.LivingJumpEvent, LivingEvent.LivingTickEvent, LivingEvent.LivingVisibilityEventNested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEvent
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.living.LivingSpawnEvent
getEntity, getLevel, getX, getY, getZMethods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
AllowDespawn
-