Record Class Structure.Context

java.lang.Object
java.lang.Record
net.minecraft.world.gen.structure.Structure.Context
Record Components:
dynamicRegistryManager -
chunkGenerator -
biomeSource -
noiseConfig -
structureTemplateManager -
random -
seed -
chunkPos -
world -
biomePredicate -
Enclosing class:
Structure

public static record Structure.Context(DynamicRegistryManager dynamicRegistryManager, ChunkGenerator chunkGenerator, BiomeSource biomeSource, NoiseConfig noiseConfig, StructureTemplateManager structureTemplateManager, ChunkRandom random, long seed, ChunkPos chunkPos, HeightLimitView world, Predicate<RegistryEntry<Biome>> biomePredicate) extends Record
Mappings:
Namespace Name
official dzg$a
intermediary net/minecraft/class_3195$class_7149
named net/minecraft/world/gen/structure/Structure$Context
official a
intermediary comp_561
named dynamicRegistryManager
official b
intermediary comp_562
named chunkGenerator
official c
intermediary comp_563
named biomeSource
official d
intermediary comp_564
named noiseConfig
official e
intermediary comp_565
named structureTemplateManager
official f
intermediary comp_566
named random
official g
intermediary comp_567
named seed
official h
intermediary comp_568
named chunkPos
official i
intermediary comp_569
named world
official j
intermediary comp_570
named biomePredicate
  • Field Details

  • Constructor Details

    • Context

      public Context(DynamicRegistryManager dynamicRegistryManager, ChunkGenerator chunkGenerator, BiomeSource biomeSource, NoiseConfig noiseConfig, StructureTemplateManager structureTemplateManager, long seed, ChunkPos chunkPos, HeightLimitView world, Predicate<RegistryEntry<Biome>> biomePredicate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Ldzg$a;<init>(Liu;Ldle;Lcus;Ldpe;Ledh;JLcsw;Lctr;Ljava/util/function/Predicate;)V
      intermediary <init> Lnet/minecraft/class_3195$class_7149;<init>(Lnet/minecraft/class_5455;Lnet/minecraft/class_2794;Lnet/minecraft/class_1966;Lnet/minecraft/class_7138;Lnet/minecraft/class_3485;JLnet/minecraft/class_1923;Lnet/minecraft/class_5539;Ljava/util/function/Predicate;)V
      named <init> Lnet/minecraft/world/gen/structure/Structure$Context;<init>(Lnet/minecraft/registry/DynamicRegistryManager;Lnet/minecraft/world/gen/chunk/ChunkGenerator;Lnet/minecraft/world/biome/source/BiomeSource;Lnet/minecraft/world/gen/noise/NoiseConfig;Lnet/minecraft/structure/StructureTemplateManager;JLnet/minecraft/util/math/ChunkPos;Lnet/minecraft/world/HeightLimitView;Ljava/util/function/Predicate;)V
    • Context

      public Context(DynamicRegistryManager dynamicRegistryManager, ChunkGenerator chunkGenerator, BiomeSource biomeSource, NoiseConfig noiseConfig, StructureTemplateManager structureTemplateManager, ChunkRandom chunkRandom, long long2, ChunkPos chunkPos, HeightLimitView heightLimitView, Predicate<RegistryEntry<Biome>> predicate)
  • Method Details

    • createChunkRandom

      private static ChunkRandom createChunkRandom(long seed, ChunkPos chunkPos)
      Mappings:
      Namespace Name Mixin selector
      official a Ldzg$a;a(JLcsw;)Ldpp;
      intermediary method_41619 Lnet/minecraft/class_3195$class_7149;method_41619(JLnet/minecraft/class_1923;)Lnet/minecraft/class_2919;
      named createChunkRandom Lnet/minecraft/world/gen/structure/Structure$Context;createChunkRandom(JLnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/util/math/random/ChunkRandom;
    • 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.
    • dynamicRegistryManager

      public DynamicRegistryManager dynamicRegistryManager()
      Returns the value of the dynamicRegistryManager record component.
      Returns:
      the value of the dynamicRegistryManager record component
    • 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
    • structureTemplateManager

      public StructureTemplateManager structureTemplateManager()
      Returns the value of the structureTemplateManager record component.
      Returns:
      the value of the structureTemplateManager 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
    • 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
    • biomePredicate

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