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$a
intermediary net/minecraft/class_6622$class_6623
named net/minecraft/structure/StructurePiecesGenerator$Context
official a
intermediary comp_124
named registryManager
official b
intermediary comp_125
named chunkGenerator
official c
intermediary comp_126
named structureManager
official d
intermediary comp_127
named chunkPos
official e
intermediary comp_128
named biomeLimit
official f
intermediary comp_129
named world
official g
intermediary comp_130
named random
official h
intermediary comp_131
named seed
-
Field Summary
Modifier and TypeFieldDescriptionThe field for thebiomeLimit
record component.private final ChunkGenerator
The field for thechunkGenerator
record component.private final ChunkPos
The field for thechunkPos
record component.private final ChunkRandom
The field for therandom
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.private final HeightLimitView
The field for theworld
record component. -
Constructor Summary
ConstructorDescriptionContext
(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 thebiomeLimit
record component.Returns the value of thechunkGenerator
record component.chunkPos()
Returns the value of thechunkPos
record component.final boolean
Indicates whether some other object is "equal to" this one.int[]
getHeightsInGround
(int x, int deltaX, int z, int deltaZ) int
getMinInGroundHeight
(int deltaX, int deltaZ) final int
hashCode()
Returns a hash code value for this object.boolean
isBiomeValid
(Heightmap.Type type) random()
Returns the value of therandom
record component.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.world()
Returns the value of theworld
record component.
-
Field Details
-
registryManager
The field for theregistryManager
record component. -
chunkGenerator
The field for thechunkGenerator
record component. -
structureManager
The field for thestructureManager
record component. -
chunkPos
The field for thechunkPos
record component. -
biomeLimit
The field for thebiomeLimit
record component. -
world
The field for theworld
record component. -
random
The field for therandom
record component. -
seed
private final long seedThe field for theseed
record 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 a
Ldfa$a;a(Lcsu$a;)Z
intermediary method_38707
Lnet/minecraft/class_6622$class_6623;method_38707(Lnet/minecraft/class_2902$class_2903;)Z
named isBiomeValid
Lnet/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 a
Ldfa$a;a(II)I
intermediary method_38705
Lnet/minecraft/class_6622$class_6623;method_38705(II)I
named getMinInGroundHeight
Lnet/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 a
Ldfa$a;a(IIII)[I
intermediary method_38706
Lnet/minecraft/class_6622$class_6623;method_38706(IIII)[I
named getHeightsInGround
Lnet/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 theregistryManager
record component.- Returns:
- the value of the
registryManager
record component
-
chunkGenerator
Returns the value of thechunkGenerator
record component.- Returns:
- the value of the
chunkGenerator
record component
-
structureManager
Returns the value of thestructureManager
record component.- Returns:
- the value of the
structureManager
record component
-
chunkPos
Returns the value of thechunkPos
record component.- Returns:
- the value of the
chunkPos
record component
-
biomeLimit
Returns the value of thebiomeLimit
record component.- Returns:
- the value of the
biomeLimit
record component
-
world
Returns the value of theworld
record component.- Returns:
- the value of the
world
record component
-
random
Returns the value of therandom
record component.- Returns:
- the value of the
random
record component
-
seed
public long seed()Returns the value of theseed
record component.- Returns:
- the value of the
seed
record component
-