Uses of Class
net.minecraft.world.gen.chunk.StructureConfig
-
Uses of StructureConfig in net.minecraft.world.gen.chunk
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<StructureConfig>
StructureConfig.CODEC
static final ImmutableMap<StructureFeature<?>,
StructureConfig> StructuresConfig.DEFAULT_STRUCTURES
Default placement settings for each known structure type.private final Map<StructureFeature<?>,
StructureConfig> StructuresConfig.structures
Modifier and TypeMethodDescriptionStructuresConfig.getForType
(StructureFeature<?> structureType) Gets the placement configuration for a specific structure type, or a default placement if placement for the structure was not explicitly configured.ModifierConstructorDescriptionprivate
StructuresConfig
(Map<StructureFeature<?>, StructureConfig> structures, @Nullable StrongholdConfig stronghold) StructuresConfig
(Optional<StrongholdConfig> stronghold, Map<StructureFeature<?>, StructureConfig> structures) -
Uses of StructureConfig in net.minecraft.world.gen.feature
Modifier and TypeMethodDescriptionfinal ChunkPos
StructureFeature.getStartChunk
(StructureConfig config, long seed, int x, int z) Determines the cell of the structure placement grid a chunk belongs to, and returns the chunk within that cell, that this structure will actually be placed at.StructureFeature.locateStructure
(WorldView world, StructureAccessor structureAccessor, BlockPos searchStartPos, int searchRadius, boolean skipExistingChunks, long worldSeed, StructureConfig config) Tries to find the closest structure of this type near a given block.ConfiguredStructureFeature.tryPlaceStart
(DynamicRegistryManager registryManager, ChunkGenerator chunkGenerator, BiomeSource biomeSource, StructureManager structureManager, long worldSeed, ChunkPos chunkPos, int structureReferences, StructureConfig structureConfig, HeightLimitView world, Predicate<Biome> biomeLimit) StructureFeature.tryPlaceStart
(DynamicRegistryManager registryManager, ChunkGenerator chunkGenerator, BiomeSource biomeSource, StructureManager structureManager, long worldSeed, ChunkPos pos, int structureReferences, StructureConfig structureConfig, C config, HeightLimitView world, Predicate<Biome> biomeLimit) Tries to place a starting point for this type of structure in the given chunk.