Uses of Record Class
net.minecraft.world.level.SpawnData
Packages that use SpawnData
Package
Description
-
Uses of SpawnData in net.minecraft.world.level
Fields 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<WeightedList<SpawnData>> SpawnData.LIST_CODECprivate WeightedList<SpawnData> BaseSpawner.spawnPotentialsMethods in net.minecraft.world.level that return SpawnDataModifier and TypeMethodDescriptionprivate SpawnDataBaseSpawner.getOrCreateNextSpawnData(@Nullable Level level, RandomSource random, BlockPos pos) Methods in net.minecraft.world.level with parameters of type SpawnDataModifier and TypeMethodDescriptionprotected voidBaseSpawner.setNextSpawnData(@Nullable Level level, BlockPos pos, SpawnData nextSpawnData) -
Uses of SpawnData in net.minecraft.world.level.block.entity.trialspawner
Fields in net.minecraft.world.level.block.entity.trialspawner with type parameters of type SpawnDataModifier and TypeFieldDescriptionTrialSpawnerStateData.nextSpawnDataTrialSpawnerStateData.Packed.nextSpawnDataThe field for thenextSpawnDatarecord component.private WeightedList<SpawnData> TrialSpawnerConfig.Builder.spawnPotentialsDefinitionprivate final WeightedList<SpawnData> TrialSpawnerConfig.spawnPotentialsDefinitionThe field for thespawnPotentialsDefinitionrecord component.Methods in net.minecraft.world.level.block.entity.trialspawner that return SpawnDataModifier and TypeMethodDescriptionTrialSpawnerConfigs.customSpawnData(EntityType<T> type, Consumer<CompoundTag> tagModifier) TrialSpawnerConfigs.customSpawnDataWithEquipment(EntityType<T> type, Consumer<CompoundTag> tagModifier, @Nullable ResourceKey<LootTable> equipmentLootTable) protected SpawnDataTrialSpawnerStateData.getOrCreateNextSpawnData(TrialSpawner trialSpawner, RandomSource random) TrialSpawnerConfigs.spawnData(EntityType<T> type) TrialSpawnerConfigs.spawnDataWithEquipment(EntityType<T> type, ResourceKey<LootTable> equipmentLootTable) Methods in net.minecraft.world.level.block.entity.trialspawner that return types with arguments of type SpawnDataModifier and TypeMethodDescriptionTrialSpawnerStateData.Packed.nextSpawnData()Returns the value of thenextSpawnDatarecord component.TrialSpawnerConfig.spawnPotentialsDefinition()Returns the value of thespawnPotentialsDefinitionrecord component.Method parameters in net.minecraft.world.level.block.entity.trialspawner with type arguments of type SpawnDataModifier and TypeMethodDescriptionTrialSpawnerConfig.Builder.spawnPotentialsDefinition(WeightedList<SpawnData> spawnPotentialsDefinition) Constructor parameters in net.minecraft.world.level.block.entity.trialspawner with type arguments of type SpawnDataModifierConstructorDescriptionPacked(Set<UUID> detectedPlayers, Set<UUID> currentMobs, long cooldownEndsAt, long nextMobSpawnsAt, int totalMobsSpawned, Optional<SpawnData> nextSpawnData, Optional<ResourceKey<LootTable>> ejectingLootTable) Creates an instance of aPackedrecord class.TrialSpawnerConfig(int spawnRange, float totalMobs, float simultaneousMobs, float totalMobsAddedPerPlayer, float simultaneousMobsAddedPerPlayer, int ticksBetweenSpawn, WeightedList<SpawnData> spawnPotentialsDefinition, WeightedList<ResourceKey<LootTable>> lootTablesToEject, ResourceKey<LootTable> itemsToDropWhenOminous) Creates an instance of aTrialSpawnerConfigrecord class. -
Uses of SpawnData in net.neoforged.neoforge.event
Methods in net.neoforged.neoforge.event with parameters of type SpawnDataModifier and TypeMethodDescriptionstatic booleanEventHooks.checkSpawnPositionSpawner(Mob mob, ServerLevelAccessor level, EntitySpawnReason spawnType, SpawnData spawnData, BaseSpawner spawner) Specialized variant ofEventHooks.checkSpawnPosition(Mob, ServerLevelAccessor, EntitySpawnReason)for spawners, as they have slightly different checks, and pass through theBaseSpawnerto the event.