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
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 spawnRange, float totalMobs, float simultaneousMobs, float totalMobsAddedPerPlayer, float simultaneousMobsAddedPerPlayer, int ticksBetweenSpawn, SimpleWeightedRandomList<SpawnData> spawnPotentialsDefinition, SimpleWeightedRandomList<ResourceKey<LootTable>> lootTablesToEject, ResourceKey<LootTable> itemsToDropWhenOminous) 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<ResourceKey<LootTable>> 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, and pass through theBaseSpawner
to the event.