Uses of Enum Class
net.minecraft.entity.SpawnGroup
Package
Description
-
Uses of SpawnGroup in net.minecraft.entity
Modifier and TypeFieldDescriptionprivate final SpawnGroup
EntityType.Builder.spawnGroup
private final SpawnGroup
EntityType.spawnGroup
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<SpawnGroup>
SpawnGroup.CODEC
A codec that encodes and decodes a spawn group from and to its name string.Modifier and TypeMethodDescriptionEntityType.getSpawnGroup()
static SpawnGroup
Returns the enum constant of this class with the specified name.static SpawnGroup[]
SpawnGroup.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic <T extends Entity>
EntityType.Builder<T>EntityType.Builder.create
(EntityType.EntityFactory<T> factory, SpawnGroup spawnGroup) static <T extends Entity>
EntityType.Builder<T>EntityType.Builder.create
(SpawnGroup spawnGroup) ModifierConstructorDescriptionprivate
Builder
(EntityType.EntityFactory<T> factory, SpawnGroup spawnGroup) EntityType
(EntityType.EntityFactory<T> factory, SpawnGroup spawnGroup, boolean saveable, boolean summonable, boolean fireImmune, boolean spawnableFarFromPlayer, ImmutableSet<Block> canSpawnInside, EntityDimensions dimensions, int maxTrackDistance, int trackTickInterval, FeatureSet requiredFeatures) -
Uses of SpawnGroup in net.minecraft.entity.ai.brain.task
Modifier and TypeMethodDescriptionstatic Task<LivingEntity>
LookAtMobTask.create
(SpawnGroup spawnGroup, float maxDistance) -
Uses of SpawnGroup in net.minecraft.server.command
Modifier and TypeMethodDescriptionprivate static int
DebugMobSpawningCommand.execute
(ServerCommandSource source, SpawnGroup group, BlockPos pos) -
Uses of SpawnGroup in net.minecraft.world
Modifier and TypeFieldDescriptionprivate final Object2IntOpenHashMap<SpawnGroup>
SpawnHelper.Info.groupToCount
private final Object2IntMap<SpawnGroup>
SpawnHelper.Info.groupToCountView
private final Object2IntMap<SpawnGroup>
SpawnDensityCapper.DensityCap.spawnGroupsToDensity
Modifier and TypeMethodDescriptionboolean
SpawnDensityCapper.canSpawn
(SpawnGroup spawnGroup, ChunkPos chunkPos) boolean
SpawnDensityCapper.DensityCap.canSpawn
(SpawnGroup spawnGroup) private static boolean
SpawnHelper.canSpawn
(ServerWorld world, SpawnGroup group, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnSettings.SpawnEntry spawnEntry, BlockPos.Mutable pos, double squaredDistance) private static boolean
SpawnHelper.containsSpawnEntry
(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, SpawnSettings.SpawnEntry spawnEntry, BlockPos pos) private static Pool<SpawnSettings.SpawnEntry>
SpawnHelper.getSpawnEntries
(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, BlockPos pos, @Nullable RegistryEntry<Biome> biomeEntry) void
SpawnDensityCapper.DensityCap.increaseDensity
(SpawnGroup spawnGroup) void
SpawnDensityCapper.increaseDensity
(ChunkPos chunkPos, SpawnGroup spawnGroup) (package private) boolean
SpawnHelper.Info.isBelowCap
(SpawnGroup group, ChunkPos chunkPos) private static Optional<SpawnSettings.SpawnEntry>
SpawnHelper.pickRandomSpawnEntry
(ServerWorld world, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, SpawnGroup spawnGroup, Random random, BlockPos pos) static boolean
SpawnHelper.shouldUseNetherFortressSpawns
(BlockPos pos, ServerWorld world, SpawnGroup spawnGroup, StructureAccessor structureAccessor) static void
SpawnHelper.spawnEntitiesInChunk
(SpawnGroup group, ServerWorld world, BlockPos pos) static void
SpawnHelper.spawnEntitiesInChunk
(SpawnGroup group, ServerWorld world, Chunk chunk, BlockPos pos, SpawnHelper.Checker checker, SpawnHelper.Runner runner) static void
SpawnHelper.spawnEntitiesInChunk
(SpawnGroup group, ServerWorld world, WorldChunk chunk, SpawnHelper.Checker checker, SpawnHelper.Runner runner) ModifierConstructorDescription(package private)
Info
(int spawningChunkCount, Object2IntOpenHashMap<SpawnGroup> groupToCount, GravityField densityField, SpawnDensityCapper densityCapper) -
Uses of SpawnGroup in net.minecraft.world.biome
Modifier and TypeFieldDescriptionprivate final Map<SpawnGroup,
List<SpawnSettings.SpawnEntry>> SpawnSettings.Builder.spawners
private final Map<SpawnGroup,
Pool<SpawnSettings.SpawnEntry>> SpawnSettings.spawners
Modifier and TypeMethodDescriptionSpawnSettings.getSpawnEntries
(SpawnGroup spawnGroup) SpawnSettings.Builder.spawn
(SpawnGroup spawnGroup, SpawnSettings.SpawnEntry spawnEntry) ModifierConstructorDescription(package private)
SpawnSettings
(float creatureSpawnProbability, Map<SpawnGroup, Pool<SpawnSettings.SpawnEntry>> spawners, Map<EntityType<?>, SpawnSettings.SpawnDensity> spawnCosts) -
Uses of SpawnGroup in net.minecraft.world.gen.chunk
Modifier and TypeMethodDescriptionChunkGenerator.getEntitySpawnList
(RegistryEntry<Biome> biome, StructureAccessor accessor, SpawnGroup group, BlockPos pos) -
Uses of SpawnGroup in net.minecraft.world.gen.structure
Modifier and TypeFieldDescriptionprivate final Map<SpawnGroup,
StructureSpawns> Structure.Config.spawnOverrides
The field for thespawnOverrides
record component.Modifier and TypeMethodDescriptionStructure.getStructureSpawns()
Structure.Config.spawnOverrides()
Returns the value of thespawnOverrides
record component.Modifier and TypeMethodDescriptionprivate static Structure.Config
Structures.createConfig
(RegistryEntryList<Biome> biomes, Map<SpawnGroup, StructureSpawns> spawns, GenerationStep.Feature featureStep, StructureTerrainAdaptation terrainAdaptation) ModifierConstructorDescriptionConfig
(RegistryEntryList<Biome> registryEntryList, Map<SpawnGroup, StructureSpawns> map, GenerationStep.Feature feature, StructureTerrainAdaptation structureTerrainAdaptation)