Class LivingSpawnEvent.SpecialSpawn
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.SpecialSpawn
- Enclosing class:
- LivingSpawnEvent
SpecialSpawn is fired when an Entity is to be spawned.
This allows you to do special inializers in the new entity.
 
This event is fired via the
 
This event is
If this event is canceled, the Entity is not spawned.
 
This event does not have a result.
 
This event is fired on the
This allows you to do special inializers in the new entity.
This event is fired via the
ForgeEventFactory.doSpecialSpawn(Mob, LevelAccessor, float, float, float, BaseSpawner, MobSpawnType).This event is
Cancelable.If this event is canceled, the Entity is not spawned.
This event does not have a result.
Event.HasResultThis event is fired on the
MinecraftForge.EVENT_BUS.- 
Nested Class SummaryNested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingSpawnEventLivingSpawnEvent.AllowDespawn, LivingSpawnEvent.CheckSpawn, LivingSpawnEvent.SpecialSpawnNested classes/interfaces inherited from class net.minecraftforge.event.entity.living.LivingEventLivingEvent.LivingJumpEvent, LivingEvent.LivingUpdateEvent, LivingEvent.LivingVisibilityEventNested classes/interfaces inherited from class net.minecraftforge.event.entity.EntityEventEntityEvent.CanUpdate, EntityEvent.EnteringSection, EntityEvent.EntityConstructing, EntityEvent.SizeNested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Eventnet.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
- 
Field SummaryFields
- 
Constructor SummaryConstructorsConstructorDescriptionSpecialSpawn(Mob entity, LevelAccessor world, double x, double y, double z, BaseSpawner spawner, MobSpawnType spawnReason) SpecialSpawn(Mob entity, Level world, double x, double y, double z, BaseSpawner spawner, MobSpawnType spawnReason) Deprecated, for removal: This API element is subject to removal in a future version.
- 
Method SummaryMethods inherited from class net.minecraftforge.event.entity.living.LivingSpawnEventgetWorld, getX, getY, getZMethods inherited from class net.minecraftforge.event.entity.living.LivingEventgetEntityLivingMethods inherited from class net.minecraftforge.event.entity.EntityEventgetEntityMethods inherited from class net.minecraftforge.eventbus.api.EventgetListenerList, getParentListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult, setup
- 
Field Details- 
spawner
- 
spawnReason
 
- 
- 
Constructor Details- 
SpecialSpawn@Deprecated(forRemoval=true, since="1.18.1") public SpecialSpawn(Mob entity, Level world, double x, double y, double z, @Nullable BaseSpawner spawner, MobSpawnType spawnReason) Deprecated, for removal: This API element is subject to removal in a future version.- Parameters:
- spawner- the position of a tileentity or approximate position of an entity that initiated the spawn if any
 
- 
SpecialSpawnpublic SpecialSpawn(Mob entity, LevelAccessor world, double x, double y, double z, @Nullable BaseSpawner spawner, MobSpawnType spawnReason) 
 
- 
- 
Method Details- 
getSpawner
- 
getSpawnReason
 
-