Uses of Record Class
net.minecraft.world.level.SpawnData
Package
Description
-
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.minecraft.world.level.block.entity.trialspawner
Modifier and TypeFieldDescriptionTrialSpawnerData.nextSpawnData
protected SimpleWeightedRandomList<SpawnData>
TrialSpawnerData.spawnPotentials
private final SimpleWeightedRandomList<SpawnData>
TrialSpawnerConfig.spawnPotentialsDefinition
The field for thespawnPotentialsDefinition
record component.Modifier and TypeMethodDescriptionprotected SpawnData
TrialSpawnerData.getOrCreateNextSpawnData
(TrialSpawner p_312745_, RandomSource p_312242_) Modifier and TypeMethodDescriptionTrialSpawnerConfig.spawnPotentialsDefinition()
Returns the value of thespawnPotentialsDefinition
record component.ModifierConstructorDescriptionTrialSpawnerConfig
(int requiredPlayerRange, int spawnRange, float totalMobs, float simultaneousMobs, float totalMobsAddedPerPlayer, float simultaneousMobsAddedPerPlayer, int ticksBetweenSpawn, int targetCooldownLength, SimpleWeightedRandomList<SpawnData> spawnPotentialsDefinition, SimpleWeightedRandomList<ResourceLocation> lootTablesToEject) Creates an instance of aTrialSpawnerConfig
record class.TrialSpawnerData
(Set<UUID> p_312283_, Set<UUID> p_312919_, long p_312537_, long p_311955_, int p_312227_, Optional<SpawnData> p_312562_, Optional<ResourceLocation> p_312406_) -
Uses of SpawnData 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.