Class MobSpawnEvent.AllowDespawn
java.lang.Object
net.minecraftforge.eventbus.api.Event
net.minecraftforge.event.entity.EntityEvent
net.minecraftforge.event.entity.living.MobSpawnEvent
net.minecraftforge.event.entity.living.MobSpawnEvent.AllowDespawn
- Enclosing class:
- MobSpawnEvent
This event is fired from 
It fires once per tick per mob that is attempting to despawn.
It is not fired if the mob is persistent (meaning it may not despawn).
 
Mob.checkDespawn().It fires once per tick per mob that is attempting to despawn.
It is not fired if the mob is persistent (meaning it may not despawn).
 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.
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.event.entity.living.MobSpawnEventMobSpawnEvent.AllowDespawn, MobSpawnEvent.FinalizeSpawn, MobSpawnEvent.PositionCheck, MobSpawnEvent.SpawnPlacementCheckNested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEventEntityEvent.EnteringSection, EntityEvent.EntityConstructingNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class net.minecraftforge.event.entity.living.MobSpawnEventgetEntity, getLevel, getX, getY, getZMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
- 
Constructor Details- 
AllowDespawn
 
-