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$Contextintermediary net/minecraft/class_3195$class_7149official ejr$anamed dynamicRegistryManagerintermediary comp_561official anamed chunkGeneratorintermediary comp_562official bnamed biomeSourceintermediary comp_563official cnamed noiseConfigintermediary comp_564official dnamed structureTemplateManagerintermediary comp_565official enamed randomintermediary comp_566official fnamed seedintermediary comp_567official gnamed chunkPosintermediary comp_568official hnamed worldintermediary comp_569official inamed biomePredicateintermediary comp_570official j
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Predicate<RegistryEntry<Biome>> The field for thebiomePredicaterecord component.private final BiomeSourceThe field for thebiomeSourcerecord component.private final ChunkGeneratorThe field for thechunkGeneratorrecord component.private final ChunkPosThe field for thechunkPosrecord component.private final DynamicRegistryManagerThe field for thedynamicRegistryManagerrecord component.private final NoiseConfigThe field for thenoiseConfigrecord component.private final ChunkRandomThe field for therandomrecord component.private final longThe field for theseedrecord component.private final StructureTemplateManagerThe field for thestructureTemplateManagerrecord component.private final HeightLimitViewThe field for theworldrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionContext(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 thebiomePredicaterecord component.Returns the value of thebiomeSourcerecord component.Returns the value of thechunkGeneratorrecord component.chunkPos()Returns the value of thechunkPosrecord component.private static ChunkRandomcreateChunkRandom(long seed, ChunkPos chunkPos) Returns the value of thedynamicRegistryManagerrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thenoiseConfigrecord component.random()Returns the value of therandomrecord component.longseed()Returns the value of theseedrecord component.Returns the value of thestructureTemplateManagerrecord component.final StringtoString()Returns a string representation of this record class.world()Returns the value of theworldrecord component.
-
Field Details
-
dynamicRegistryManager
The field for thedynamicRegistryManagerrecord component. -
chunkGenerator
The field for thechunkGeneratorrecord component. -
biomeSource
The field for thebiomeSourcerecord component. -
noiseConfig
The field for thenoiseConfigrecord component. -
structureTemplateManager
The field for thestructureTemplateManagerrecord component. -
random
The field for therandomrecord component. -
seed
private final long seedThe field for theseedrecord component. -
chunkPos
The field for thechunkPosrecord component. -
world
The field for theworldrecord component. -
biomePredicate
The field for thebiomePredicaterecord 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 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;)Vintermediary <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;)Vofficial <init>Lejr$a;<init>(Lka;Lduz;Ldea;Ldzm;Lenu;JLdcd;Ldcy;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 named createChunkRandomLnet/minecraft/world/gen/structure/Structure$Context;createChunkRandom(JLnet/minecraft/util/math/ChunkPos;)Lnet/minecraft/util/math/random/ChunkRandom;intermediary method_41619Lnet/minecraft/class_3195$class_7149;method_41619(JLnet/minecraft/class_1923;)Lnet/minecraft/class_2919;official aLejr$a;a(JLdcd;)Ldzx;
-
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 thedynamicRegistryManagerrecord component.- Returns:
- the value of the
dynamicRegistryManagerrecord component
-
chunkGenerator
Returns the value of thechunkGeneratorrecord component.- Returns:
- the value of the
chunkGeneratorrecord component
-
biomeSource
Returns the value of thebiomeSourcerecord component.- Returns:
- the value of the
biomeSourcerecord component
-
noiseConfig
Returns the value of thenoiseConfigrecord component.- Returns:
- the value of the
noiseConfigrecord component
-
structureTemplateManager
Returns the value of thestructureTemplateManagerrecord component.- Returns:
- the value of the
structureTemplateManagerrecord component
-
random
Returns the value of therandomrecord component.- Returns:
- the value of the
randomrecord component
-
seed
public long seed()Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
chunkPos
Returns the value of thechunkPosrecord component.- Returns:
- the value of the
chunkPosrecord component
-
world
Returns the value of theworldrecord component.- Returns:
- the value of the
worldrecord component
-
biomePredicate
Returns the value of thebiomePredicaterecord component.- Returns:
- the value of the
biomePredicaterecord component
-