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_311810_, RandomSource p_311692_) 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_312543_, Set<UUID> p_311274_, long p_312908_, long p_311373_, int p_311452_, Optional<SpawnData> p_311258_, Optional<ResourceLocation> p_312612_) -
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.