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 drp$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 Summary
Modifier and TypeFieldDescriptionprivate final Predicate<RegistryEntry<Biome>>
The field for thebiomePredicate
record component.private final BiomeSource
The field for thebiomeSource
record component.private final ChunkGenerator
The field for thechunkGenerator
record component.private final ChunkPos
The field for thechunkPos
record component.private final DynamicRegistryManager
The field for thedynamicRegistryManager
record component.private final NoiseConfig
The field for thenoiseConfig
record component.private final ChunkRandom
The field for therandom
record component.private final long
The field for theseed
record component.private final StructureTemplateManager
The field for thestructureTemplateManager
record component.private final HeightLimitView
The field for theworld
record component. -
Constructor Summary
ConstructorDescriptionContext
(DynamicRegistryManager dynamicRegistryManager, ChunkGenerator chunkGenerator, BiomeSource biomeSource, NoiseConfig noiseConfig, StructureTemplateManager structureTemplateManager, long seed, ChunkPos chunkPos, HeightLimitView world, Predicate<RegistryEntry<Biome>> biomePredicate) Context
(DynamicRegistryManager dynamicRegistryManager, ChunkGenerator chunkGenerator, BiomeSource biomeSource, NoiseConfig noiseConfig, StructureTemplateManager structureTemplateManager, ChunkRandom chunkRandom, long long2, ChunkPos chunkPos, HeightLimitView heightLimitView, Predicate<RegistryEntry<Biome>> predicate) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebiomePredicate
record component.Returns the value of thebiomeSource
record component.Returns the value of thechunkGenerator
record component.chunkPos()
Returns the value of thechunkPos
record component.private static ChunkRandom
createChunkRandom
(long seed, ChunkPos chunkPos) Returns the value of thedynamicRegistryManager
record component.final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of thenoiseConfig
record component.random()
Returns the value of therandom
record component.long
seed()
Returns the value of theseed
record component.Returns the value of thestructureTemplateManager
record component.final String
toString()
Returns a string representation of this record class.world()
Returns the value of theworld
record component.
-
Field Details
-
dynamicRegistryManager
The field for thedynamicRegistryManager
record component. -
chunkGenerator
The field for thechunkGenerator
record component. -
biomeSource
The field for thebiomeSource
record component. -
noiseConfig
The field for thenoiseConfig
record component. -
structureTemplateManager
The field for thestructureTemplateManager
record component. -
random
The field for therandom
record component. -
seed
private final long seedThe field for theseed
record component. -
chunkPos
The field for thechunkPos
record component. -
world
The field for theworld
record component. -
biomePredicate
The field for thebiomePredicate
record component.
-
-
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>
Ldrp$a;<init>(Lhr;Lddo;Lcnj;Ldhn;Ldvi;JLclp;Lcmk;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
- Mappings:
Namespace Name Mixin selector official a
Ldrp$a;a(JLclp;)Ldhy;
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
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. -
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. -
equals
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 withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
dynamicRegistryManager
Returns the value of thedynamicRegistryManager
record component.- Returns:
- the value of the
dynamicRegistryManager
record component
-
chunkGenerator
Returns the value of thechunkGenerator
record component.- Returns:
- the value of the
chunkGenerator
record component
-
biomeSource
Returns the value of thebiomeSource
record component.- Returns:
- the value of the
biomeSource
record component
-
noiseConfig
Returns the value of thenoiseConfig
record component.- Returns:
- the value of the
noiseConfig
record component
-
structureTemplateManager
Returns the value of thestructureTemplateManager
record component.- Returns:
- the value of the
structureTemplateManager
record component
-
random
Returns the value of therandom
record component.- Returns:
- the value of the
random
record component
-
seed
public long seed()Returns the value of theseed
record component.- Returns:
- the value of the
seed
record component
-
chunkPos
Returns the value of thechunkPos
record component.- Returns:
- the value of the
chunkPos
record component
-
world
Returns the value of theworld
record component.- Returns:
- the value of the
world
record component
-
biomePredicate
Returns the value of thebiomePredicate
record component.- Returns:
- the value of the
biomePredicate
record component
-