Record Class StructureGeneratorFactory.Context<C extends FeatureConfig>

java.lang.Object
java.lang.Record
net.minecraft.structure.StructureGeneratorFactory.Context<C>
Record Components:
chunkGenerator -
biomeSource -
noiseConfig -
seed -
chunkPos -
config -
world -
validBiome -
structureTemplateManager -
registryManager -
Enclosing interface:
StructureGeneratorFactory<C extends FeatureConfig>

public static record StructureGeneratorFactory.Context<C extends FeatureConfig>(ChunkGenerator chunkGenerator, BiomeSource biomeSource, NoiseConfig noiseConfig, long seed, ChunkPos chunkPos, C extends FeatureConfig config, HeightLimitView world, Predicate<RegistryEntry<Biome>> validBiome, StructureTemplateManager structureTemplateManager, DynamicRegistryManager registryManager) extends Record
Mappings:
Namespace Name
named net/minecraft/structure/StructureGeneratorFactory$Context
intermediary net/minecraft/class_6834$class_6835
official eka$a
named chunkGenerator
intermediary comp_306
official a
named biomeSource
intermediary comp_307
official b
named noiseConfig
intermediary comp_573
official c
named seed
intermediary comp_308
official d
named chunkPos
intermediary comp_309
official e
named config
intermediary comp_310
official f
named world
intermediary comp_311
official g
named validBiome
intermediary comp_312
official h
named structureTemplateManager
intermediary comp_313
official i
named registryManager
intermediary comp_314
official j
  • Field Details

  • Constructor Details

  • Method Details

    • isBiomeValid

      public boolean isBiomeValid(Heightmap.Type heightmapType)
      Mappings:
      Namespace Name Mixin selector
      named isBiomeValid Lnet/minecraft/structure/StructureGeneratorFactory$Context;isBiomeValid(Lnet/minecraft/world/Heightmap$Type;)Z
      intermediary method_39848 Lnet/minecraft/class_6834$class_6835;method_39848(Lnet/minecraft/class_2902$class_2903;)Z
      official a Leka$a;a(Ldyv$a;)Z
    • 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.
    • chunkGenerator

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

      public BiomeSource biomeSource()
      Returns the value of the biomeSource record component.
      Returns:
      the value of the biomeSource record component
    • noiseConfig

      public NoiseConfig noiseConfig()
      Returns the value of the noiseConfig record component.
      Returns:
      the value of the noiseConfig record component
    • seed

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

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

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

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

      public Predicate<RegistryEntry<Biome>> validBiome()
      Returns the value of the validBiome record component.
      Returns:
      the value of the validBiome record component
    • structureTemplateManager

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

      public DynamicRegistryManager registryManager()
      Returns the value of the registryManager record component.
      Returns:
      the value of the registryManager record component