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
named net/minecraft/world/gen/structure/Structure$Context
intermediary net/minecraft/class_3195$class_7149
official eil$a
named dynamicRegistryManager
intermediary comp_561
official a
named chunkGenerator
intermediary comp_562
official b
named biomeSource
intermediary comp_563
official c
named noiseConfig
intermediary comp_564
official d
named structureTemplateManager
intermediary comp_565
official e
named random
intermediary comp_566
official f
named seed
intermediary comp_567
official g
named chunkPos
intermediary comp_568
official h
named world
intermediary comp_569
official i
named biomePredicate
intermediary comp_570
official j
  • 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
      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
      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
      official <init> Leil$a;<init>(Ljw;Ldua;Lddc;Ldyj;Lemm;JLdbg;Ldcb;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
      named createChunkRandom Lnet/minecraft/world/gen/structure/Structure$Context;createChunkRandom(JLnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/util/math/random/ChunkRandom;
      intermediary method_41619 Lnet/minecraft/class_3195$class_7149;method_41619(JLnet/minecraft/class_1923;)Lnet/minecraft/class_2919;
      official a Leil$a;a(JLdbg;)Ldyu;
    • 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