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 ejr$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
  • 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.
    • DEFAULT

      static final Structure.Config 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 Lejr$c;f:Lejr$c;
    • CODEC

      public static final com.mojang.serialization.MapCodec<Structure.Config> 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 Lejr$c;a: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