Uses of Class
net.minecraft.world.level.BaseSpawner
Package
Description
-
Uses of BaseSpawner in net.minecraft.world.entity.vehicle
-
Uses of BaseSpawner in net.minecraft.world.level.block.entity
-
Uses of BaseSpawner in net.neoforged.neoforge.event
Modifier and TypeMethodDescriptionstatic boolean
EventHooks.checkSpawnPositionSpawner
(Mob mob, ServerLevelAccessor level, MobSpawnType spawnType, SpawnData spawnData, BaseSpawner spawner) Specialized variant ofEventHooks.checkSpawnPosition(net.minecraft.world.entity.Mob, net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.entity.MobSpawnType)
for spawners, as they have slightly different checks, and pass through theBaseSpawner
to the event. -
Uses of BaseSpawner in net.neoforged.neoforge.event.entity.living
Modifier and TypeFieldDescriptionprivate final @Nullable BaseSpawner
MobSpawnEvent.PositionCheck.spawner
Modifier and TypeMethodDescription@Nullable BaseSpawner
MobSpawnEvent.PositionCheck.getSpawner()
Retrieves the underlyingBaseSpawner
instance if this mob was created by a Mob Spawner of some form.ModifierConstructorDescriptionPositionCheck
(Mob mob, ServerLevelAccessor level, MobSpawnType spawnType, @Nullable BaseSpawner spawner)