Uses of Record Class
net.minecraft.world.level.SpawnData
-
Uses of SpawnData in net.minecraft.world.level
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SpawnData>
SpawnData.CODEC
static final com.mojang.serialization.Codec<SimpleWeightedRandomList<SpawnData>>
SpawnData.LIST_CODEC
private SimpleWeightedRandomList<SpawnData>
BaseSpawner.spawnPotentials
Modifier and TypeMethodDescriptionprivate SpawnData
BaseSpawner.getOrCreateNextSpawnData
(Level p_254503_, RandomSource p_253892_, BlockPos p_254487_) Modifier and TypeMethodDescriptionprotected void
BaseSpawner.setNextSpawnData
(Level p_151325_, BlockPos p_151326_, SpawnData p_151327_) -
Uses of SpawnData in net.minecraftforge.event
Modifier and TypeMethodDescriptionstatic boolean
ForgeEventFactory.checkSpawnPositionSpawner
(Mob mob, ServerLevelAccessor level, MobSpawnType spawnType, SpawnData spawnData, BaseSpawner spawner) Specialized variant ofForgeEventFactory.checkSpawnPosition(net.minecraft.world.entity.Mob, net.minecraft.world.level.ServerLevelAccessor, net.minecraft.world.entity.MobSpawnType)
for spawners, as they have slightly different checks.