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-seed-chunkPos-config-world-validBiome-structureManager-registryManager-
- Enclosing interface:
StructureGeneratorFactory<C extends FeatureConfig>
public static record StructureGeneratorFactory.Context<C extends FeatureConfig>(ChunkGenerator chunkGenerator, BiomeSource biomeSource, long seed, ChunkPos chunkPos, C extends FeatureConfig config, HeightLimitView world, Predicate<RegistryEntry<Biome>> validBiome, StructureManager structureManager, DynamicRegistryManager registryManager)
extends Record
- Mappings:
Namespace Name official dfx$aintermediary net/minecraft/class_6834$class_6835named net/minecraft/structure/StructureGeneratorFactory$Contextofficial aintermediary comp_306named chunkGeneratorofficial bintermediary comp_307named biomeSourceofficial cintermediary comp_308named seedofficial dintermediary comp_309named chunkPosofficial eintermediary comp_310named configofficial fintermediary comp_311named worldofficial gintermediary comp_312named validBiomeofficial hintermediary comp_313named structureManagerofficial iintermediary comp_314named registryManager
-
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 DynamicRegistryManagerThe field for theregistryManagerrecord component.private final longThe field for theseedrecord component.private final StructureManagerThe field for thestructureManagerrecord 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, long long2, ChunkPos chunkPos, C c, HeightLimitView heightLimitView, Predicate<RegistryEntry<Biome>> predicate, StructureManager structureManager, 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.int[]getCornerHeights(int x, int width, int z, int height) intgetMinCornerHeight(int width, int height) final inthashCode()Returns a hash code value for this object.booleanisBiomeValid(Heightmap.Type heightmapType) Returns the value of theregistryManagerrecord component.longseed()Returns the value of theseedrecord component.Returns the value of thestructureManagerrecord 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. -
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. -
structureManager
The field for thestructureManagerrecord component. -
registryManager
The field for theregistryManagerrecord component.
-
-
Constructor Details
-
Context
public Context(ChunkGenerator chunkGenerator, BiomeSource biomeSource, long long2, ChunkPos chunkPos, C c, HeightLimitView heightLimitView, Predicate<RegistryEntry<Biome>> predicate, StructureManager structureManager, DynamicRegistryManager dynamicRegistryManager)
-
-
Method Details
-
isBiomeValid
- Mappings:
Namespace Name Mixin selector official aLdfx$a;a(Lctw$a;)Zintermediary method_39848Lnet/minecraft/class_6834$class_6835;method_39848(Lnet/minecraft/class_2902$class_2903;)Znamed isBiomeValidLnet/minecraft/structure/StructureGeneratorFactory$Context;isBiomeValid(Lnet/minecraft/world/Heightmap$Type;)Z
-
getCornerHeights
public int[] getCornerHeights(int x, int width, int z, int height) - Mappings:
Namespace Name Mixin selector official aLdfx$a;a(IIII)[Iintermediary method_39847Lnet/minecraft/class_6834$class_6835;method_39847(IIII)[Inamed getCornerHeightsLnet/minecraft/structure/StructureGeneratorFactory$Context;getCornerHeights(IIII)[I
-
getMinCornerHeight
public int getMinCornerHeight(int width, int height) - Mappings:
Namespace Name Mixin selector official aLdfx$a;a(II)Iintermediary method_39846Lnet/minecraft/class_6834$class_6835;method_39846(II)Inamed getMinCornerHeightLnet/minecraft/structure/StructureGeneratorFactory$Context;getMinCornerHeight(II)I
-
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
-
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
-
structureManager
Returns the value of thestructureManagerrecord component.- Returns:
- the value of the
structureManagerrecord component
-
registryManager
Returns the value of theregistryManagerrecord component.- Returns:
- the value of the
registryManagerrecord component
-