Record Class Structure.Config
java.lang.Object
java.lang.Record
net.minecraft.world.gen.structure.Structure.Config
- Record Components:
- biomes-
- spawnOverrides-
- step-
- terrainAdaptation-
- Enclosing class:
- Structure
public static record Structure.Config(RegistryEntryList<Biome> biomes, Map<SpawnGroup,StructureSpawns> spawnOverrides, GenerationStep.Feature step, StructureTerrainAdaptation terrainAdaptation)
extends Record 
- Mappings:
- Namespace - Name - named - net/minecraft/world/gen/structure/Structure$Config- intermediary - net/minecraft/class_3195$class_7302- official - enn$c- named - biomes- intermediary - comp_686- official - b- named - spawnOverrides- intermediary - comp_687- official - c- named - step- intermediary - comp_688- official - d- named - terrainAdaptation- intermediary - comp_689- official - e
- 
Nested Class SummaryNested Classes
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final RegistryEntryList<Biome> The field for thebiomesrecord component.static final com.mojang.serialization.MapCodec<Structure.Config> (package private) static final Structure.Configprivate final Map<SpawnGroup, StructureSpawns> The field for thespawnOverridesrecord component.private final GenerationStep.FeatureThe field for thesteprecord component.private final StructureTerrainAdaptationThe field for theterrainAdaptationrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionConfig(RegistryEntryList<Biome> biomes) Config(RegistryEntryList<Biome> registryEntryList, Map<SpawnGroup, StructureSpawns> map, GenerationStep.Feature feature, StructureTerrainAdaptation structureTerrainAdaptation) 
- 
Method SummaryModifier and TypeMethodDescriptionbiomes()Returns the value of thebiomesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thespawnOverridesrecord component.step()Returns the value of thesteprecord component.Returns the value of theterrainAdaptationrecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
biomesThe field for thebiomesrecord component.
- 
spawnOverridesThe field for thespawnOverridesrecord component.
- 
stepThe field for thesteprecord component.
- 
terrainAdaptationThe field for theterrainAdaptationrecord component.
- 
DEFAULT- Mappings:
- Namespace - Name - Mixin selector - named - DEFAULT- Lnet/minecraft/world/gen/structure/Structure$Config;DEFAULT:Lnet/minecraft/world/gen/structure/Structure$Config;- intermediary - field_52229- Lnet/minecraft/class_3195$class_7302;field_52229:Lnet/minecraft/class_3195$class_7302;- official - f- Lenn$c;f:Lenn$c;
 
- 
CODEC- Mappings:
- Namespace - Name - Mixin selector - named - CODEC- Lnet/minecraft/world/gen/structure/Structure$Config;CODEC:Lcom/mojang/serialization/MapCodec;- intermediary - field_38430- Lnet/minecraft/class_3195$class_7302;field_38430:Lcom/mojang/serialization/MapCodec;- official - a- Lenn$c;a:Lcom/mojang/serialization/MapCodec;
 
 
- 
- 
Constructor Details- 
Config- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/world/gen/structure/Structure$Config;<init>(Lnet/minecraft/registry/entry/RegistryEntryList;)V- intermediary - <init>- Lnet/minecraft/class_3195$class_7302;<init>(Lnet/minecraft/class_6885;)V- official - <init>- Lenn$c;<init>(Ljv;)V
 
- 
Configpublic Config(RegistryEntryList<Biome> registryEntryList, Map<SpawnGroup, StructureSpawns> map, GenerationStep.Feature feature, StructureTerrainAdaptation structureTerrainAdaptation) 
 
- 
- 
Method Details- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
biomesReturns the value of thebiomesrecord component.- Returns:
- the value of the biomesrecord component
 
- 
spawnOverridesReturns the value of thespawnOverridesrecord component.- Returns:
- the value of the spawnOverridesrecord component
 
- 
stepReturns the value of thesteprecord component.- Returns:
- the value of the steprecord component
 
- 
terrainAdaptationReturns the value of theterrainAdaptationrecord component.- Returns:
- the value of the terrainAdaptationrecord component
 
 
-