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<Biome> validBiome, StructureManager structureManager, DynamicRegistryManager registryManager)
extends Record
- Mappings:
Namespace Name official dfn$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_308
named seed
official d
intermediary comp_309
named chunkPos
official e
intermediary comp_310
named config
official f
intermediary comp_311
named world
official g
intermediary comp_312
named validBiome
official h
intermediary comp_313
named structureManager
official i
intermediary comp_314
named registryManager
-
Field Summary
Modifier and TypeFieldDescriptionprivate final BiomeSource
The field for thebiomeSource
record component.private final ChunkGenerator
The field for thechunkGenerator
record component.private final ChunkPos
The field for thechunkPos
record component.private final C
The field for theconfig
record component.private final DynamicRegistryManager
The field for theregistryManager
record component.private final long
The field for theseed
record component.private final StructureManager
The field for thestructureManager
record component.The field for thevalidBiome
record component.private final HeightLimitView
The field for theworld
record component. -
Constructor Summary
ConstructorDescriptionContext
(ChunkGenerator chunkGenerator, BiomeSource biomeSource, long long2, ChunkPos chunkPos, C c, HeightLimitView heightLimitView, Predicate<Biome> predicate, StructureManager structureManager, DynamicRegistryManager dynamicRegistryManager) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebiomeSource
record component.Returns the value of thechunkGenerator
record component.chunkPos()
Returns the value of thechunkPos
record component.config()
Returns the value of theconfig
record component.final boolean
Indicates whether some other object is "equal to" this one.int[]
getCornerHeights
(int x, int width, int z, int height) int
getMinCornerHeight
(int width, int height) final int
hashCode()
Returns a hash code value for this object.boolean
isBiomeValid
(Heightmap.Type heightmapType) Returns the value of theregistryManager
record component.long
seed()
Returns the value of theseed
record component.Returns the value of thestructureManager
record component.final String
toString()
Returns a string representation of this record class.Returns the value of thevalidBiome
record component.world()
Returns the value of theworld
record component.
-
Field Details
-
chunkGenerator
The field for thechunkGenerator
record component. -
biomeSource
The field for thebiomeSource
record component. -
seed
private final long seedThe field for theseed
record component. -
chunkPos
The field for thechunkPos
record component. -
config
The field for theconfig
record component. -
world
The field for theworld
record component. -
validBiome
The field for thevalidBiome
record component. -
structureManager
The field for thestructureManager
record component. -
registryManager
The field for theregistryManager
record component.
-
-
Constructor Details
-
Context
public Context(ChunkGenerator chunkGenerator, BiomeSource biomeSource, long long2, ChunkPos chunkPos, C c, HeightLimitView heightLimitView, Predicate<Biome> predicate, StructureManager structureManager, DynamicRegistryManager dynamicRegistryManager)
-
-
Method Details
-
isBiomeValid
- Mappings:
Namespace Name Mixin selector official a
Ldfn$a;a(Lctc$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
-
getCornerHeights
public int[] getCornerHeights(int x, int width, int z, int height) - Mappings:
Namespace Name Mixin selector official a
Ldfn$a;a(IIII)[I
intermediary method_39847
Lnet/minecraft/class_6834$class_6835;method_39847(IIII)[I
named getCornerHeights
Lnet/minecraft/structure/StructureGeneratorFactory$Context;getCornerHeights(IIII)[I
-
getMinCornerHeight
public int getMinCornerHeight(int width, int height) - Mappings:
Namespace Name Mixin selector official a
Ldfn$a;a(II)I
intermediary method_39846
Lnet/minecraft/class_6834$class_6835;method_39846(II)I
named getMinCornerHeight
Lnet/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 thechunkGenerator
record component.- Returns:
- the value of the
chunkGenerator
record component
-
biomeSource
Returns the value of thebiomeSource
record component.- Returns:
- the value of the
biomeSource
record component
-
seed
public long seed()Returns the value of theseed
record component.- Returns:
- the value of the
seed
record component
-
chunkPos
Returns the value of thechunkPos
record component.- Returns:
- the value of the
chunkPos
record component
-
config
Returns the value of theconfig
record component.- Returns:
- the value of the
config
record component
-
world
Returns the value of theworld
record component.- Returns:
- the value of the
world
record component
-
validBiome
Returns the value of thevalidBiome
record component.- Returns:
- the value of the
validBiome
record component
-
structureManager
Returns the value of thestructureManager
record component.- Returns:
- the value of the
structureManager
record component
-
registryManager
Returns the value of theregistryManager
record component.- Returns:
- the value of the
registryManager
record component
-