Package net.minecraft.world.gen.chunk
Class StructuresConfig
java.lang.Object
net.minecraft.world.gen.chunk.StructuresConfig
Contains the configuration for placement of each structure type during chunk generation.
- Mappings:
Namespace Name official cttintermediary net/minecraft/class_5311named net/minecraft/world/gen/chunk/StructuresConfig
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<StructuresConfig>private final ImmutableMap<StructureFeature<?>,ImmutableMultimap<ConfiguredStructureFeature<?, ?>, RegistryKey<Biome>>> static final StrongholdConfigDefault placement settings for the stronghold.static final ImmutableMap<StructureFeature<?>,StructureConfig> Default placement settings for each known structure type.private final @Nullable StrongholdConfigPlacement settings for the stronghold for this particular combination of settings, may be null to disable placement of strongholds.private final Map<StructureFeature<?>,StructureConfig> -
Constructor Summary
ConstructorsModifierConstructorDescriptionStructuresConfig(boolean withStronghold) Creates a new structure placement configuration with default values.privateStructuresConfig(Map<StructureFeature<?>, StructureConfig> structures, @Nullable StrongholdConfig stronghold) StructuresConfig(Optional<StrongholdConfig> stronghold, Map<StructureFeature<?>, StructureConfig> structures) -
Method Summary
Modifier and TypeMethodDescriptiongetConfiguredStructureFeature(StructureFeature<?> feature) 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.
-
Field Details
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLctt;a:Lcom/mojang/serialization/Codec;intermediary field_24821Lnet/minecraft/class_5311;field_24821:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/gen/chunk/StructuresConfig;CODEC:Lcom/mojang/serialization/Codec;
-
DEFAULT_STRUCTURES
Default placement settings for each known structure type. At startup, Minecraft validates that each registered structure has a default configuration in this map. If mods register structures after this class has been initialized, the check will already have been made and a bad default configuration will be used instead (see below).- Mappings:
Namespace Name Mixin selector official bLctt;b:Lcom/google/common/collect/ImmutableMap;intermediary field_24822Lnet/minecraft/class_5311;field_24822:Lcom/google/common/collect/ImmutableMap;named DEFAULT_STRUCTURESLnet/minecraft/world/gen/chunk/StructuresConfig;DEFAULT_STRUCTURES:Lcom/google/common/collect/ImmutableMap;
-
DEFAULT_STRONGHOLD
Default placement settings for the stronghold.- Mappings:
Namespace Name Mixin selector official cLctt;c:Ldag;intermediary field_24823Lnet/minecraft/class_5311;field_24823:Lnet/minecraft/class_5313;named DEFAULT_STRONGHOLDLnet/minecraft/world/gen/chunk/StructuresConfig;DEFAULT_STRONGHOLD:Lnet/minecraft/world/gen/chunk/StrongholdConfig;
-
structures
- Mappings:
Namespace Name Mixin selector official dLctt;d:Ljava/util/Map;intermediary field_24824Lnet/minecraft/class_5311;field_24824:Ljava/util/Map;named structuresLnet/minecraft/world/gen/chunk/StructuresConfig;structures:Ljava/util/Map;
-
configuredStructures
private final ImmutableMap<StructureFeature<?>,ImmutableMultimap<ConfiguredStructureFeature<?, configuredStructures?>, RegistryKey<Biome>>> - Mappings:
Namespace Name Mixin selector official eLctt;e:Lcom/google/common/collect/ImmutableMap;intermediary field_34696Lnet/minecraft/class_5311;field_34696:Lcom/google/common/collect/ImmutableMap;named configuredStructuresLnet/minecraft/world/gen/chunk/StructuresConfig;configuredStructures:Lcom/google/common/collect/ImmutableMap;
-
stronghold
Placement settings for the stronghold for this particular combination of settings, may be null to disable placement of strongholds.- Mappings:
Namespace Name Mixin selector official fLctt;f:Ldag;intermediary field_24825Lnet/minecraft/class_5311;field_24825:Lnet/minecraft/class_5313;named strongholdLnet/minecraft/world/gen/chunk/StructuresConfig;stronghold:Lnet/minecraft/world/gen/chunk/StrongholdConfig;
-
-
Constructor Details
-
StructuresConfig
private StructuresConfig(Map<StructureFeature<?>, StructureConfig> structures, @Nullable @Nullable StrongholdConfig stronghold) - Mappings:
Namespace Name Mixin selector official <init>Lctt;<init>(Ljava/util/Map;Ldag;)Vintermediary <init>Lnet/minecraft/class_5311;<init>(Ljava/util/Map;Lnet/minecraft/class_5313;)Vnamed <init>Lnet/minecraft/world/gen/chunk/StructuresConfig;<init>(Ljava/util/Map;Lnet/minecraft/world/gen/chunk/StrongholdConfig;)V
-
StructuresConfig
public StructuresConfig(Optional<StrongholdConfig> stronghold, Map<StructureFeature<?>, StructureConfig> structures) - Mappings:
Namespace Name Mixin selector official <init>Lctt;<init>(Ljava/util/Optional;Ljava/util/Map;)Vintermediary <init>Lnet/minecraft/class_5311;<init>(Ljava/util/Optional;Ljava/util/Map;)Vnamed <init>Lnet/minecraft/world/gen/chunk/StructuresConfig;<init>(Ljava/util/Optional;Ljava/util/Map;)V
-
StructuresConfig
public StructuresConfig(boolean withStronghold) Creates a new structure placement configuration with default values.- Parameters:
withStronghold- determines if the default stronghold configuration should be included- Mappings:
Namespace Name Mixin selector official <init>Lctt;<init>(Z)Vintermediary <init>Lnet/minecraft/class_5311;<init>(Z)Vnamed <init>Lnet/minecraft/world/gen/chunk/StructuresConfig;<init>(Z)V
-
-
Method Details
-
getStructures
- Mappings:
Namespace Name Mixin selector official aLctt;a()Ljava/util/Map;intermediary method_28598Lnet/minecraft/class_5311;method_28598()Ljava/util/Map;named getStructuresLnet/minecraft/world/gen/chunk/StructuresConfig;getStructures()Ljava/util/Map;
-
getForType
Gets the placement configuration for a specific structure type, or a default placement if placement for the structure was not explicitly configured.- Mappings:
Namespace Name Mixin selector official aLctt;a(Lcyi;)Ldah;intermediary method_28600Lnet/minecraft/class_5311;method_28600(Lnet/minecraft/class_3195;)Lnet/minecraft/class_5314;named getForTypeLnet/minecraft/world/gen/chunk/StructuresConfig;getForType(Lnet/minecraft/world/gen/feature/StructureFeature;)Lnet/minecraft/world/gen/chunk/StructureConfig;
-
getStronghold
- Mappings:
Namespace Name Mixin selector official bLctt;b()Ldag;intermediary method_28602Lnet/minecraft/class_5311;method_28602()Lnet/minecraft/class_5313;named getStrongholdLnet/minecraft/world/gen/chunk/StructuresConfig;getStronghold()Lnet/minecraft/world/gen/chunk/StrongholdConfig;
-
getConfiguredStructureFeature
public ImmutableMultimap<ConfiguredStructureFeature<?,?>, getConfiguredStructureFeatureRegistryKey<Biome>> (StructureFeature<?> feature) - Mappings:
Namespace Name Mixin selector official bLctt;b(Lcyi;)Lcom/google/common/collect/ImmutableMultimap;intermediary method_38424Lnet/minecraft/class_5311;method_38424(Lnet/minecraft/class_3195;)Lcom/google/common/collect/ImmutableMultimap;named getConfiguredStructureFeatureLnet/minecraft/world/gen/chunk/StructuresConfig;getConfiguredStructureFeature(Lnet/minecraft/world/gen/feature/StructureFeature;)Lcom/google/common/collect/ImmutableMultimap;
-