Uses of Class
net.minecraft.world.biome.MobSpawnInfo.Spawners
Package
Description
-
Uses of MobSpawnInfo.Spawners in net.minecraft.world.biome
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<MobSpawnInfo.Spawners>
MobSpawnInfo.Spawners.CODEC
protected final Map<EntityClassification,
List<MobSpawnInfo.Spawners>> MobSpawnInfo.Builder.spawners
private final Map<EntityClassification,
List<MobSpawnInfo.Spawners>> MobSpawnInfo.spawners
Modifier and TypeMethodDescriptionMobSpawnInfo.Builder.addSpawn
(EntityClassification p_242575_1_, MobSpawnInfo.Spawners p_242575_2_) ModifierConstructorDescriptionprivate
MobSpawnInfo
(float p_i241946_1_, Map<EntityClassification, List<MobSpawnInfo.Spawners>> p_i241946_2_, Map<EntityType<?>, MobSpawnInfo.SpawnCosts> p_i241946_3_, boolean p_i241946_4_) -
Uses of MobSpawnInfo.Spawners in net.minecraft.world.gen
Modifier and TypeMethodDescriptionChunkGenerator.getMobsAt
(Biome p_230353_1_, StructureManager p_230353_2_, EntityClassification p_230353_3_, BlockPos p_230353_4_) NoiseChunkGenerator.getMobsAt
(Biome p_230353_1_, StructureManager p_230353_2_, EntityClassification p_230353_3_, BlockPos p_230353_4_) -
Uses of MobSpawnInfo.Spawners in net.minecraft.world.gen.feature.structure
Modifier and TypeFieldDescriptionprivate static final List<MobSpawnInfo.Spawners>
FortressStructure.FORTRESS_ENEMIES
private static final List<MobSpawnInfo.Spawners>
OceanMonumentStructure.MONUMENT_ENEMIES
private static final List<MobSpawnInfo.Spawners>
PillagerOutpostStructure.OUTPOST_ENEMIES
private static final List<MobSpawnInfo.Spawners>
SwampHutStructure.SWAMPHUT_ANIMALS
private static final List<MobSpawnInfo.Spawners>
SwampHutStructure.SWAMPHUT_ENEMIES
Modifier and TypeMethodDescriptionSwampHutStructure.getDefaultCreatureSpawnList()
FortressStructure.getDefaultSpawnList()
OceanMonumentStructure.getDefaultSpawnList()
PillagerOutpostStructure.getDefaultSpawnList()
SwampHutStructure.getDefaultSpawnList()
final List<MobSpawnInfo.Spawners>
Structure.getSpawnList
(EntityClassification classification) Structure.getSpecialAnimals()
Structure.getSpecialEnemies()
-
Uses of MobSpawnInfo.Spawners in net.minecraft.world.spawner
Modifier and TypeMethodDescriptionprivate static MobSpawnInfo.Spawners
WorldEntitySpawner.getRandomSpawnMobAt
(ServerWorld p_234977_0_, StructureManager p_234977_1_, ChunkGenerator p_234977_2_, EntityClassification p_234977_3_, Random p_234977_4_, BlockPos p_234977_5_) Modifier and TypeMethodDescriptionprivate static List<MobSpawnInfo.Spawners>
WorldEntitySpawner.mobsAt
(ServerWorld p_241463_0_, StructureManager p_241463_1_, ChunkGenerator p_241463_2_, EntityClassification p_241463_3_, BlockPos p_241463_4_, Biome p_241463_5_) Modifier and TypeMethodDescriptionprivate static boolean
WorldEntitySpawner.canSpawnMobAt
(ServerWorld p_234976_0_, StructureManager p_234976_1_, ChunkGenerator p_234976_2_, EntityClassification p_234976_3_, MobSpawnInfo.Spawners p_234976_4_, BlockPos p_234976_5_) private static boolean
WorldEntitySpawner.isValidSpawnPostitionForType
(ServerWorld p_234975_0_, EntityClassification p_234975_1_, StructureManager p_234975_2_, ChunkGenerator p_234975_3_, MobSpawnInfo.Spawners p_234975_4_, BlockPos.Mutable p_234975_5_, double p_234975_6_) -
Uses of MobSpawnInfo.Spawners in net.minecraftforge.common.extensions
Modifier and TypeMethodDescriptiondefault List<MobSpawnInfo.Spawners>
IForgeStructure.getDefaultCreatureSpawnList()
Gets the default list ofEntityClassification.CREATURE
spawns for this structure.default List<MobSpawnInfo.Spawners>
IForgeStructure.getDefaultSpawnList()
Gets the default list ofEntityClassification.MONSTER
spawns for this structure.IForgeStructure.getSpawnList
(EntityClassification classification) Helper method to get the list of entity spawns for this structure for the given classification. -
Uses of MobSpawnInfo.Spawners in net.minecraftforge.common.world
Modifier and TypeFieldDescriptionprivate final Map<EntityClassification,
List<MobSpawnInfo.Spawners>> StructureSpawnManager.StructureSpawnInfo.spawns
Modifier and TypeMethodDescriptionMobSpawnInfoBuilder.getSpawner
(EntityClassification type) static List<MobSpawnInfo.Spawners>
StructureSpawnManager.getSpawnList
(Structure<?> structure, EntityClassification classification) Gets the entity spawn lists for entities of a given classification for a given structure.static List<MobSpawnInfo.Spawners>
StructureSpawnManager.getStructureSpawns
(StructureManager structureManager, EntityClassification classification, BlockPos pos) Looks up if a given position is within a structure and returns any entity spawns that structure has for the given classification, or null if none are found.ModifierConstructorDescriptionprivate
StructureSpawnInfo
(Map<EntityClassification, List<MobSpawnInfo.Spawners>> spawns, boolean insideOnly) -
Uses of MobSpawnInfo.Spawners in net.minecraftforge.event
Modifier and TypeMethodDescriptionstatic List<MobSpawnInfo.Spawners>
ForgeEventFactory.getPotentialSpawns
(IWorld world, EntityClassification type, BlockPos pos, List<MobSpawnInfo.Spawners> oldList) Modifier and TypeMethodDescriptionstatic List<MobSpawnInfo.Spawners>
ForgeEventFactory.getPotentialSpawns
(IWorld world, EntityClassification type, BlockPos pos, List<MobSpawnInfo.Spawners> oldList) -
Uses of MobSpawnInfo.Spawners in net.minecraftforge.event.world
Modifier and TypeFieldDescriptionprivate final Map<EntityClassification,
List<MobSpawnInfo.Spawners>> StructureSpawnListGatherEvent.entitySpawns
private final Map<EntityClassification,
List<MobSpawnInfo.Spawners>> StructureSpawnListGatherEvent.entitySpawnsUnmodifiable
private final Map<EntityClassification,
List<MobSpawnInfo.Spawners>> StructureSpawnListGatherEvent.entitySpawnsUnmodifiableLists
private final List<MobSpawnInfo.Spawners>
WorldEvent.PotentialSpawns.list
Modifier and TypeMethodDescriptionStructureSpawnListGatherEvent.getEntitySpawns()
Gets an unmodifiable view of the map of spawns based on entity classification that is used to fill in the various spawn lists for the structure.StructureSpawnListGatherEvent.getEntitySpawns
(EntityClassification classification) Gets an unmodifiable view of the the list representing the entity spawns for the given classification.WorldEvent.PotentialSpawns.getList()
private List<MobSpawnInfo.Spawners>
StructureSpawnListGatherEvent.getOrCreateEntitySpawns
(EntityClassification classification) Gets the internal spawn list for a given entity classification, or adds one if needed.Modifier and TypeMethodDescriptionvoid
StructureSpawnListGatherEvent.addEntitySpawn
(EntityClassification classification, MobSpawnInfo.Spawners spawner) Adds a spawn to the list of spawns for the given classification.void
StructureSpawnListGatherEvent.removeEntitySpawn
(EntityClassification classification, MobSpawnInfo.Spawners spawner) Removes a spawn from the list of spawns for the given classification.Modifier and TypeMethodDescriptionvoid
StructureSpawnListGatherEvent.addEntitySpawns
(EntityClassification classification, List<MobSpawnInfo.Spawners> spawners) Adds spawns to the list of spawns for the given classification.ModifierConstructorDescriptionPotentialSpawns
(IWorld world, EntityClassification type, BlockPos pos, List<MobSpawnInfo.Spawners> oldList)