Uses of Record Class
net.minecraft.world.level.SpawnData
Packages that use SpawnData
Package
Description
- 
Uses of SpawnData in net.minecraft.world.levelFields in net.minecraft.world.level declared as SpawnDataFields in net.minecraft.world.level with type parameters of type SpawnDataModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SpawnData>SpawnData.CODECstatic final com.mojang.serialization.Codec<SimpleWeightedRandomList<SpawnData>>SpawnData.LIST_CODECprivate SimpleWeightedRandomList<SpawnData>BaseSpawner.spawnPotentialsMethods in net.minecraft.world.level that return SpawnDataModifier and TypeMethodDescriptionprivate SpawnDataBaseSpawner.getOrCreateNextSpawnData(Level p_254503_, RandomSource p_253892_, BlockPos p_254487_) Methods in net.minecraft.world.level with parameters of type SpawnDataModifier and TypeMethodDescriptionprotected voidBaseSpawner.setNextSpawnData(Level p_151325_, BlockPos p_151326_, SpawnData p_151327_) 
- 
Uses of SpawnData in net.minecraft.world.level.block.entity.trialspawnerFields in net.minecraft.world.level.block.entity.trialspawner with type parameters of type SpawnDataModifier and TypeFieldDescriptionTrialSpawnerData.nextSpawnDataprotected SimpleWeightedRandomList<SpawnData>TrialSpawnerData.spawnPotentialsprivate final SimpleWeightedRandomList<SpawnData>TrialSpawnerConfig.spawnPotentialsDefinitionThe field for thespawnPotentialsDefinitionrecord component.Methods in net.minecraft.world.level.block.entity.trialspawner that return SpawnDataModifier and TypeMethodDescriptionprotected SpawnDataTrialSpawnerData.getOrCreateNextSpawnData(TrialSpawner p_312745_, RandomSource p_312242_) Methods in net.minecraft.world.level.block.entity.trialspawner that return types with arguments of type SpawnDataModifier and TypeMethodDescriptionTrialSpawnerConfig.spawnPotentialsDefinition()Returns the value of thespawnPotentialsDefinitionrecord component.Constructor parameters in net.minecraft.world.level.block.entity.trialspawner with type arguments of type SpawnDataModifierConstructorDescriptionTrialSpawnerConfig(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 aTrialSpawnerConfigrecord 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.eventMethods in net.neoforged.neoforge.event with parameters of type SpawnDataModifier and TypeMethodDescriptionstatic booleanEventHooks.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.