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 official drp$c
intermediary net/minecraft/class_3195$class_7302
named net/minecraft/world/gen/structure/Structure$Config
official b
intermediary comp_686
named biomes
official c
intermediary comp_687
named spawnOverrides
official d
intermediary comp_688
named step
official e
intermediary comp_689
named terrainAdaptation
-
Field Summary
Modifier and TypeFieldDescriptionprivate final RegistryEntryList<Biome>
The field for thebiomes
record component.static final com.mojang.serialization.MapCodec<Structure.Config>
private final Map<SpawnGroup,
StructureSpawns> The field for thespawnOverrides
record component.private final GenerationStep.Feature
The field for thestep
record component.private final StructureTerrainAdaptation
The field for theterrainAdaptation
record component. -
Constructor Summary
ConstructorDescriptionConfig
(RegistryEntryList<Biome> registryEntryList, Map<SpawnGroup, StructureSpawns> map, GenerationStep.Feature feature, StructureTerrainAdaptation structureTerrainAdaptation) -
Method Summary
Modifier and TypeMethodDescriptionbiomes()
Returns the value of thebiomes
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thespawnOverrides
record component.step()
Returns the value of thestep
record component.Returns the value of theterrainAdaptation
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
biomes
The field for thebiomes
record component. -
spawnOverrides
The field for thespawnOverrides
record component. -
step
The field for thestep
record component. -
terrainAdaptation
The field for theterrainAdaptation
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector official a
Ldrp$c;a:Lcom/mojang/serialization/MapCodec;
intermediary field_38430
Lnet/minecraft/class_3195$class_7302;field_38430:Lcom/mojang/serialization/MapCodec;
named CODEC
Lnet/minecraft/world/gen/structure/Structure$Config;CODEC:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
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 thebiomes
record component.- Returns:
- the value of the
biomes
record component
-
spawnOverrides
Returns the value of thespawnOverrides
record component.- Returns:
- the value of the
spawnOverrides
record component
-
step
Returns the value of thestep
record component.- Returns:
- the value of the
step
record component
-
terrainAdaptation
Returns the value of theterrainAdaptation
record component.- Returns:
- the value of the
terrainAdaptation
record component
-