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 named net/minecraft/structure/StructureGeneratorFactory$Contextintermediary net/minecraft/class_6834$class_6835official ekf$anamed chunkGeneratorintermediary comp_306official anamed biomeSourceintermediary comp_307official bnamed noiseConfigintermediary comp_573official cnamed seedintermediary comp_308official dnamed chunkPosintermediary comp_309official enamed configintermediary comp_310official fnamed worldintermediary comp_311official gnamed validBiomeintermediary comp_312official hnamed structureTemplateManagerintermediary comp_313official inamed registryManagerintermediary comp_314official j
-
Field Summary
FieldsModifier 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 Summary
ConstructorsConstructorDescriptionContext(ChunkGenerator chunkGenerator, BiomeSource biomeSource, NoiseConfig noiseConfig, long long2, ChunkPos chunkPos, C c, HeightLimitView heightLimitView, Predicate<RegistryEntry<Biome>> predicate, StructureTemplateManager structureTemplateManager, DynamicRegistryManager dynamicRegistryManager) -
Method Summary
Modifier 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
-
chunkGenerator
The field for thechunkGeneratorrecord component. -
biomeSource
The field for thebiomeSourcerecord component. -
noiseConfig
The field for thenoiseConfigrecord component. -
seed
private final long seedThe field for theseedrecord component. -
chunkPos
The field for thechunkPosrecord component. -
config
The field for theconfigrecord component. -
world
The field for theworldrecord component. -
validBiome
The field for thevalidBiomerecord component. -
structureTemplateManager
The field for thestructureTemplateManagerrecord component. -
registryManager
The field for theregistryManagerrecord component.
-
-
Constructor Details
-
Context
public 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 named isBiomeValidLnet/minecraft/structure/StructureGeneratorFactory$Context;isBiomeValid(Lnet/minecraft/world/Heightmap$Type;)Zintermediary method_39848Lnet/minecraft/class_6834$class_6835;method_39848(Lnet/minecraft/class_2902$class_2903;)Zofficial aLekf$a;a(Ldyy$a;)Z
-
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 '=='. -
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
-
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
-
config
Returns the value of theconfigrecord component.- Returns:
- the value of the
configrecord component
-
world
Returns the value of theworldrecord component.- Returns:
- the value of the
worldrecord component
-
validBiome
Returns the value of thevalidBiomerecord component.- Returns:
- the value of the
validBiomerecord component
-
structureTemplateManager
Returns the value of thestructureTemplateManagerrecord component.- Returns:
- the value of the
structureTemplateManagerrecord component
-
registryManager
Returns the value of theregistryManagerrecord component.- Returns:
- the value of the
registryManagerrecord component
-