Record Class StructurePiecesGenerator.Context<C extends FeatureConfig>

java.lang.Object
java.lang.Record
net.minecraft.structure.StructurePiecesGenerator.Context<C>
Record Components:
config -
chunkGenerator -
structureTemplateManager -
chunkPos -
world -
random -
seed -
Enclosing interface:
StructurePiecesGenerator<C extends FeatureConfig>

public static record StructurePiecesGenerator.Context<C extends FeatureConfig>(C extends FeatureConfig config, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, ChunkPos chunkPos, HeightLimitView world, ChunkRandom random, long seed) extends Record
Mappings:
Namespace Name
named net/minecraft/structure/StructurePiecesGenerator$Context
intermediary net/minecraft/class_6622$class_6623
official ejz$a
named config
intermediary comp_305
official a
named chunkGenerator
intermediary comp_125
official b
named structureTemplateManager
intermediary comp_126
official c
named chunkPos
intermediary comp_127
official d
named world
intermediary comp_129
official e
named random
intermediary comp_130
official f
named seed
intermediary comp_131
official g
  • Field Details

  • 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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • config

      public C config()
      Returns the value of the config record component.
      Returns:
      the value of the config record component
    • chunkGenerator

      public ChunkGenerator chunkGenerator()
      Returns the value of the chunkGenerator record component.
      Returns:
      the value of the chunkGenerator record component
    • structureTemplateManager

      public StructureTemplateManager structureTemplateManager()
      Returns the value of the structureTemplateManager record component.
      Returns:
      the value of the structureTemplateManager record component
    • chunkPos

      public ChunkPos chunkPos()
      Returns the value of the chunkPos record component.
      Returns:
      the value of the chunkPos record component
    • world

      public HeightLimitView world()
      Returns the value of the world record component.
      Returns:
      the value of the world record component
    • random

      public ChunkRandom random()
      Returns the value of the random record component.
      Returns:
      the value of the random record component
    • seed

      public long seed()
      Returns the value of the seed record component.
      Returns:
      the value of the seed record component