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$Configintermediary net/minecraft/class_3195$class_7302official ejr$cnamed biomesintermediary comp_686official bnamed spawnOverridesintermediary comp_687official cnamed stepintermediary comp_688official dnamed terrainAdaptationintermediary comp_689official e
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionConfig(RegistryEntryList<Biome> biomes) Config(RegistryEntryList<Biome> registryEntryList, Map<SpawnGroup, StructureSpawns> map, GenerationStep.Feature feature, StructureTerrainAdaptation structureTerrainAdaptation) -
Method Summary
Modifier 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
-
biomes
The field for thebiomesrecord component. -
spawnOverrides
The field for thespawnOverridesrecord component. -
step
The field for thesteprecord component. -
terrainAdaptation
The field for theterrainAdaptationrecord component. -
DEFAULT
- Mappings:
Namespace Name Mixin selector named DEFAULTLnet/minecraft/world/gen/structure/Structure$Config;DEFAULT:Lnet/minecraft/world/gen/structure/Structure$Config;intermediary field_52229Lnet/minecraft/class_3195$class_7302;field_52229:Lnet/minecraft/class_3195$class_7302;official fLejr$c;f:Lejr$c;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/gen/structure/Structure$Config;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_38430Lnet/minecraft/class_3195$class_7302;field_38430:Lcom/mojang/serialization/MapCodec;official aLejr$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;)Vintermediary <init>Lnet/minecraft/class_3195$class_7302;<init>(Lnet/minecraft/class_6885;)Vofficial <init>Lejr$c;<init>(Ljq;)V
-
Config
public Config(RegistryEntryList<Biome> registryEntryList, Map<SpawnGroup, StructureSpawns> map, GenerationStep.Feature feature, StructureTerrainAdaptation structureTerrainAdaptation)
-
-
Method Details
-
toString
Returns 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. -
hashCode
public 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. -
equals
Indicates 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). -
biomes
Returns the value of thebiomesrecord component.- Returns:
- the value of the
biomesrecord component
-
spawnOverrides
Returns the value of thespawnOverridesrecord component.- Returns:
- the value of the
spawnOverridesrecord component
-
step
Returns the value of thesteprecord component.- Returns:
- the value of the
steprecord component
-
terrainAdaptation
Returns the value of theterrainAdaptationrecord component.- Returns:
- the value of the
terrainAdaptationrecord component
-