类 StructureSettingsBuilder
java.lang.Object
net.minecraftforge.common.world.StructureSettingsBuilder
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private final Map
<MobCategory, StructureSettingsBuilder.StructureSpawnOverrideBuilder> private GenerationStep.Decoration
private TerrainAdjustment
-
构造器概要
构造器限定符构造器说明private
StructureSettingsBuilder
(HolderSet<Biome> biomes, Map<MobCategory, StructureSpawnOverride> spawnOverrides, GenerationStep.Decoration step, TerrainAdjustment terrainAdaptation) -
方法概要
修饰符和类型方法说明build()
static StructureSettingsBuilder
copyOf
(Structure.StructureSettings settings) Gets the world generation decoration step the structure spawns during.getOrAddSpawnOverrides
(MobCategory category) Gets or creates a mutable builder for the spawn overrides of a given mob category.getSpawnOverrides
(MobCategory category) Gets a mutable builder for the spawn overrides of a given mob category ornull
if no overrides are defined for that category.Gets the way the structure adapts to the terrain during generation.void
removeSpawnOverrides
(MobCategory category) Removes the spawn overrides for the given mob category.void
void
Sets the world generation decoration step the structure spawns during.void
setTerrainAdaptation
(TerrainAdjustment terrainAdaptation) Sets the way the structure adapts to the terrain during generation.
-
字段详细资料
-
biomes
-
spawnOverrides
private final Map<MobCategory,StructureSettingsBuilder.StructureSpawnOverrideBuilder> spawnOverrides -
step
-
terrainAdaptation
-
-
构造器详细资料
-
StructureSettingsBuilder
private StructureSettingsBuilder(HolderSet<Biome> biomes, Map<MobCategory, StructureSpawnOverride> spawnOverrides, GenerationStep.Decoration step, TerrainAdjustment terrainAdaptation)
-
-
方法详细资料
-
copyOf
- 参数:
settings
- Existing StructureSettings.- 返回:
- A new builder with a copy of that StructureSettings's values.
-
build
- 返回:
- A new StructureSettings with the finalized values.
-
getBiomes
-
setBiomes
-
getSpawnOverrides
@Nullable public @Nullable StructureSettingsBuilder.StructureSpawnOverrideBuilder getSpawnOverrides(MobCategory category) Gets a mutable builder for the spawn overrides of a given mob category ornull
if no overrides are defined for that category.- 参数:
category
- Mob category
-
getOrAddSpawnOverrides
public StructureSettingsBuilder.StructureSpawnOverrideBuilder getOrAddSpawnOverrides(MobCategory category) Gets or creates a mutable builder for the spawn overrides of a given mob category. If the override needed to be created it will default to piece bounding.- 参数:
category
- Mob category
-
removeSpawnOverrides
Removes the spawn overrides for the given mob category.- 参数:
category
- Mob category
-
getDecorationStep
Gets the world generation decoration step the structure spawns during. -
setDecorationStep
Sets the world generation decoration step the structure spawns during. -
getTerrainAdaptation
Gets the way the structure adapts to the terrain during generation. -
setTerrainAdaptation
Sets the way the structure adapts to the terrain during generation.- 参数:
terrainAdaptation
- New terrain adjustment
-