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 - enn$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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionContext(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 SummaryModifier 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- 
dynamicRegistryManagerThe field for thedynamicRegistryManagerrecord component.
- 
chunkGeneratorThe field for thechunkGeneratorrecord component.
- 
biomeSourceThe field for thebiomeSourcerecord component.
- 
noiseConfigThe field for thenoiseConfigrecord component.
- 
structureTemplateManagerThe field for thestructureTemplateManagerrecord component.
- 
randomThe field for therandomrecord component.
- 
seedprivate final long seedThe field for theseedrecord component.
- 
chunkPosThe field for thechunkPosrecord component.
- 
worldThe field for theworldrecord component.
- 
biomePredicateThe field for thebiomePredicaterecord component.
 
- 
- 
Constructor Details- 
Contextpublic 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>- Lenn$a;<init>(Lkf;Ldyu;Ldhp;Ledh;Lerq;JLdfp;Ldgl;Ljava/util/function/Predicate;)V
 
- 
Contextpublic 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 - 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- Lenn$a;a(JLdfp;)Leds;
 
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
dynamicRegistryManagerReturns the value of thedynamicRegistryManagerrecord component.- Returns:
- the value of the dynamicRegistryManagerrecord component
 
- 
chunkGeneratorReturns the value of thechunkGeneratorrecord component.- Returns:
- the value of the chunkGeneratorrecord component
 
- 
biomeSourceReturns the value of thebiomeSourcerecord component.- Returns:
- the value of the biomeSourcerecord component
 
- 
noiseConfigReturns the value of thenoiseConfigrecord component.- Returns:
- the value of the noiseConfigrecord component
 
- 
structureTemplateManagerReturns the value of thestructureTemplateManagerrecord component.- Returns:
- the value of the structureTemplateManagerrecord component
 
- 
randomReturns the value of therandomrecord component.- Returns:
- the value of the randomrecord component
 
- 
seedpublic long seed()Returns the value of theseedrecord component.- Returns:
- the value of the seedrecord component
 
- 
chunkPosReturns the value of thechunkPosrecord component.- Returns:
- the value of the chunkPosrecord component
 
- 
worldReturns the value of theworldrecord component.- Returns:
- the value of the worldrecord component
 
- 
biomePredicateReturns the value of thebiomePredicaterecord component.- Returns:
- the value of the biomePredicaterecord component
 
 
-