类的使用
net.minecraft.world.gen.chunk.StructureConfig
-
使用StructureConfig的程序包 程序包 说明 net.minecraft.world.gen.chunk net.minecraft.world.gen.feature -
-
net.minecraft.world.gen.chunk中StructureConfig的使用
类型参数类型为StructureConfig的net.minecraft.world.gen.chunk中的字段 修饰符和类型 字段 说明 static com.mojang.serialization.Codec<StructureConfig>StructureConfig. CODECstatic ImmutableMap<StructureFeature<?>,StructureConfig>StructuresConfig. DEFAULT_STRUCTURESDefault placement settings for each known structure type.private Map<StructureFeature<?>,StructureConfig>StructuresConfig. structures返回StructureConfig的net.minecraft.world.gen.chunk中的方法 修饰符和类型 方法 说明 @Nullable StructureConfigStructuresConfig. 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.返回变量类型为StructureConfig的类型的net.minecraft.world.gen.chunk中的方法 修饰符和类型 方法 说明 Map<StructureFeature<?>,StructureConfig>StructuresConfig. getStructures()类型变量类型为StructureConfig的net.minecraft.world.gen.chunk中的构造器参数 构造器 说明 StructuresConfig(Optional<StrongholdConfig> stronghold, Map<StructureFeature<?>,StructureConfig> structures) -
net.minecraft.world.gen.feature中StructureConfig的使用
参数类型为StructureConfig的net.minecraft.world.gen.feature中的方法 修饰符和类型 方法 说明 ChunkPosStructureFeature. getStartChunk(StructureConfig config, long worldSeed, ChunkRandom placementRandom, int chunkX, int chunkY)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.@Nullable BlockPosStructureFeature. 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.StructureStart<?>ConfiguredStructureFeature. tryPlaceStart(DynamicRegistryManager registryManager, ChunkGenerator chunkGenerator, BiomeSource biomeSource, StructureManager structureManager, long worldSeed, ChunkPos chunkPos, Biome biome, int referenceCount, StructureConfig structureConfig, HeightLimitView heightLimitView)StructureStart<?>StructureFeature. tryPlaceStart(DynamicRegistryManager dynamicRegistryManager, ChunkGenerator generator, BiomeSource biomeSource, StructureManager manager, long worldSeed, ChunkPos pos, Biome biome, int referenceCount, ChunkRandom random, StructureConfig structureConfig, C config, HeightLimitView world)Tries to place a starting point for this type of structure in the given chunk.
-