Package net.minecraft.structure
Record Class StructureGeneratorFactory.Context<C extends FeatureConfig>
java.lang.Object
java.lang.Record
net.minecraft.structure.StructureGeneratorFactory.Context<C>
- Record Components:
- chunkGenerator-
- biomeSource-
- noiseConfig-
- seed-
- chunkPos-
- config-
- world-
- validBiome-
- structureTemplateManager-
- registryManager-
- Enclosing interface:
- StructureGeneratorFactory<C extends FeatureConfig>
public static record StructureGeneratorFactory.Context<C extends FeatureConfig>(ChunkGenerator chunkGenerator, BiomeSource biomeSource, NoiseConfig noiseConfig, long seed, ChunkPos chunkPos, C extends FeatureConfig config, HeightLimitView world, Predicate<RegistryEntry<Biome>> validBiome, StructureTemplateManager structureTemplateManager, DynamicRegistryManager registryManager)
extends Record
- Mappings:
- Namespace - Name - official - dso$a- intermediary - net/minecraft/class_6834$class_6835- named - net/minecraft/structure/StructureGeneratorFactory$Context- official - a- intermediary - comp_306- named - chunkGenerator- official - b- intermediary - comp_307- named - biomeSource- official - c- intermediary - comp_573- named - noiseConfig- official - d- intermediary - comp_308- named - seed- official - e- intermediary - comp_309- named - chunkPos- official - f- intermediary - comp_310- named - config- official - g- intermediary - comp_311- named - world- official - h- intermediary - comp_312- named - validBiome- official - i- intermediary - comp_313- named - structureTemplateManager- official - j- intermediary - comp_314- named - registryManager
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final BiomeSourceThe field for thebiomeSourcerecord component.private final ChunkGeneratorThe field for thechunkGeneratorrecord component.private final ChunkPosThe field for thechunkPosrecord component.private final CThe field for theconfigrecord component.private final NoiseConfigThe field for thenoiseConfigrecord component.private final DynamicRegistryManagerThe field for theregistryManagerrecord component.private final longThe field for theseedrecord component.private final StructureTemplateManagerThe field for thestructureTemplateManagerrecord component.private final Predicate<RegistryEntry<Biome>>The field for thevalidBiomerecord component.private final HeightLimitViewThe field for theworldrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionContext(ChunkGenerator chunkGenerator, BiomeSource biomeSource, NoiseConfig noiseConfig, long long2, ChunkPos chunkPos, C c, HeightLimitView heightLimitView, Predicate<RegistryEntry<Biome>> predicate, StructureTemplateManager structureTemplateManager, DynamicRegistryManager dynamicRegistryManager) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns the value of thebiomeSourcerecord component.Returns the value of thechunkGeneratorrecord component.chunkPos()Returns the value of thechunkPosrecord component.config()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisBiomeValid(Heightmap.Type heightmapType) Returns the value of thenoiseConfigrecord component.Returns the value of theregistryManagerrecord component.longseed()Returns the value of theseedrecord component.Returns the value of thestructureTemplateManagerrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidBiomerecord component.world()Returns the value of theworldrecord component.
- 
Field Details- 
chunkGeneratorThe field for thechunkGeneratorrecord component.
- 
biomeSourceThe field for thebiomeSourcerecord component.
- 
noiseConfigThe field for thenoiseConfigrecord component.
- 
seedprivate final long seedThe field for theseedrecord component.
- 
chunkPosThe field for thechunkPosrecord component.
- 
configThe field for theconfigrecord component.
- 
worldThe field for theworldrecord component.
- 
validBiomeThe field for thevalidBiomerecord component.
- 
structureTemplateManagerThe field for thestructureTemplateManagerrecord component.
- 
registryManagerThe field for theregistryManagerrecord component.
 
- 
- 
Constructor Details- 
Contextpublic Context(ChunkGenerator chunkGenerator, BiomeSource biomeSource, NoiseConfig noiseConfig, long long2, ChunkPos chunkPos, C c, HeightLimitView heightLimitView, Predicate<RegistryEntry<Biome>> predicate, StructureTemplateManager structureTemplateManager, DynamicRegistryManager dynamicRegistryManager) 
 
- 
- 
Method Details- 
isBiomeValid- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldso$a;a(Ldhk$a;)Z- intermediary - method_39848- Lnet/minecraft/class_6834$class_6835;method_39848(Lnet/minecraft/class_2902$class_2903;)Z- named - isBiomeValid- Lnet/minecraft/structure/StructureGeneratorFactory$Context;isBiomeValid(Lnet/minecraft/world/Heightmap$Type;)Z
 
- 
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 '=='.
- 
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
 
- 
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
 
- 
configReturns the value of theconfigrecord component.- Returns:
- the value of the configrecord component
 
- 
worldReturns the value of theworldrecord component.- Returns:
- the value of the worldrecord component
 
- 
validBiomeReturns the value of thevalidBiomerecord component.- Returns:
- the value of the validBiomerecord component
 
- 
structureTemplateManagerReturns the value of thestructureTemplateManagerrecord component.- Returns:
- the value of the structureTemplateManagerrecord component
 
- 
registryManagerReturns the value of theregistryManagerrecord component.- Returns:
- the value of the registryManagerrecord component
 
 
-