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 dop$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 Details

    • biomes

      private final RegistryEntryList<Biome> biomes
      The field for the biomes record component.
    • spawnOverrides

      private final Map<SpawnGroup,StructureSpawns> spawnOverrides
      The field for the spawnOverrides record component.
    • step

      private final GenerationStep.Feature step
      The field for the step record component.
    • terrainAdaptation

      private final StructureTerrainAdaptation terrainAdaptation
      The field for the terrainAdaptation record component.
    • CODEC

      public static final com.mojang.serialization.MapCodec<Structure.Config> CODEC
      Mappings:
      Namespace Name Mixin selector
      official a Ldop$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

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • biomes

      public RegistryEntryList<Biome> biomes()
      Returns the value of the biomes record component.
      Returns:
      the value of the biomes record component
    • spawnOverrides

      public Map<SpawnGroup,StructureSpawns> spawnOverrides()
      Returns the value of the spawnOverrides record component.
      Returns:
      the value of the spawnOverrides record component
    • step

      public GenerationStep.Feature step()
      Returns the value of the step record component.
      Returns:
      the value of the step record component
    • terrainAdaptation

      public StructureTerrainAdaptation terrainAdaptation()
      Returns the value of the terrainAdaptation record component.
      Returns:
      the value of the terrainAdaptation record component