Package net.minecraft.structure
Record Class StructurePiecesGenerator.Context
java.lang.Object
java.lang.Record
net.minecraft.structure.StructurePiecesGenerator.Context
- Record Components:
registryManager-chunkGenerator-structureManager-chunkPos-biomeLimit-world-random-seed-
- Enclosing interface:
- StructurePiecesGenerator<C extends FeatureConfig>
public static record StructurePiecesGenerator.Context(DynamicRegistryManager registryManager, ChunkGenerator chunkGenerator, StructureManager structureManager, ChunkPos chunkPos, Predicate<Biome> biomeLimit, HeightLimitView world, ChunkRandom random, long seed)
extends Record
- Mappings:
Namespace Name official dfa$aintermediary net/minecraft/class_6622$class_6623named net/minecraft/structure/StructurePiecesGenerator$Contextofficial aintermediary comp_124named registryManagerofficial bintermediary comp_125named chunkGeneratorofficial cintermediary comp_126named structureManagerofficial dintermediary comp_127named chunkPosofficial eintermediary comp_128named biomeLimitofficial fintermediary comp_129named worldofficial gintermediary comp_130named randomofficial hintermediary comp_131named seed
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for thebiomeLimitrecord component.private final ChunkGeneratorThe field for thechunkGeneratorrecord component.private final ChunkPosThe field for thechunkPosrecord component.private final ChunkRandomThe field for therandomrecord component.private final DynamicRegistryManagerThe field for theregistryManagerrecord component.private final longThe field for theseedrecord component.private final StructureManagerThe field for thestructureManagerrecord component.private final HeightLimitViewThe field for theworldrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionContext(DynamicRegistryManager dynamicRegistryManager, ChunkGenerator chunkGenerator, StructureManager structureManager, ChunkPos chunkPos, Predicate<Biome> predicate, HeightLimitView heightLimitView, ChunkRandom chunkRandom, long long2) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebiomeLimitrecord component.Returns the value of thechunkGeneratorrecord component.chunkPos()Returns the value of thechunkPosrecord component.final booleanIndicates whether some other object is "equal to" this one.int[]getHeightsInGround(int x, int deltaX, int z, int deltaZ) intgetMinInGroundHeight(int deltaX, int deltaZ) final inthashCode()Returns a hash code value for this object.booleanisBiomeValid(Heightmap.Type type) random()Returns the value of therandomrecord component.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.world()Returns the value of theworldrecord component.
-
Field Details
-
registryManager
The field for theregistryManagerrecord component. -
chunkGenerator
The field for thechunkGeneratorrecord component. -
structureManager
The field for thestructureManagerrecord component. -
chunkPos
The field for thechunkPosrecord component. -
biomeLimit
The field for thebiomeLimitrecord component. -
world
The field for theworldrecord component. -
random
The field for therandomrecord component. -
seed
private final long seedThe field for theseedrecord component.
-
-
Constructor Details
-
Context
public Context(DynamicRegistryManager dynamicRegistryManager, ChunkGenerator chunkGenerator, StructureManager structureManager, ChunkPos chunkPos, Predicate<Biome> predicate, HeightLimitView heightLimitView, ChunkRandom chunkRandom, long long2)
-
-
Method Details
-
isBiomeValid
- Mappings:
Namespace Name Mixin selector official aLdfa$a;a(Lcsu$a;)Zintermediary method_38707Lnet/minecraft/class_6622$class_6623;method_38707(Lnet/minecraft/class_2902$class_2903;)Znamed isBiomeValidLnet/minecraft/structure/StructurePiecesGenerator$Context;isBiomeValid(Lnet/minecraft/world/Heightmap$Type;)Z
-
getMinInGroundHeight
public int getMinInGroundHeight(int deltaX, int deltaZ) - Mappings:
Namespace Name Mixin selector official aLdfa$a;a(II)Iintermediary method_38705Lnet/minecraft/class_6622$class_6623;method_38705(II)Inamed getMinInGroundHeightLnet/minecraft/structure/StructurePiecesGenerator$Context;getMinInGroundHeight(II)I
-
getHeightsInGround
public int[] getHeightsInGround(int x, int deltaX, int z, int deltaZ) - Mappings:
Namespace Name Mixin selector official aLdfa$a;a(IIII)[Iintermediary method_38706Lnet/minecraft/class_6622$class_6623;method_38706(IIII)[Inamed getHeightsInGroundLnet/minecraft/structure/StructurePiecesGenerator$Context;getHeightsInGround(IIII)[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 '=='. -
registryManager
Returns the value of theregistryManagerrecord component.- Returns:
- the value of the
registryManagerrecord component
-
chunkGenerator
Returns the value of thechunkGeneratorrecord component.- Returns:
- the value of the
chunkGeneratorrecord component
-
structureManager
Returns the value of thestructureManagerrecord component.- Returns:
- the value of the
structureManagerrecord component
-
chunkPos
Returns the value of thechunkPosrecord component.- Returns:
- the value of the
chunkPosrecord component
-
biomeLimit
Returns the value of thebiomeLimitrecord component.- Returns:
- the value of the
biomeLimitrecord component
-
world
Returns the value of theworldrecord component.- Returns:
- the value of the
worldrecord component
-
random
Returns the value of therandomrecord component.- Returns:
- the value of the
randomrecord component
-
seed
public long seed()Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-