Package net.minecraft.structure
Record Class StructurePiecesGenerator.Context<C extends FeatureConfig>
java.lang.Object
java.lang.Record
net.minecraft.structure.StructurePiecesGenerator.Context<C>
- Record Components:
config
-chunkGenerator
-structureTemplateManager
-chunkPos
-world
-random
-seed
-
- Enclosing interface:
StructurePiecesGenerator<C extends FeatureConfig>
public static record StructurePiecesGenerator.Context<C extends FeatureConfig>(C extends FeatureConfig config, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, ChunkPos chunkPos, HeightLimitView world, ChunkRandom random, long seed)
extends Record
- Mappings:
Namespace Name named net/minecraft/structure/StructurePiecesGenerator$Context
intermediary net/minecraft/class_6622$class_6623
official eow$a
named config
intermediary comp_305
official a
named chunkGenerator
intermediary comp_125
official b
named structureTemplateManager
intermediary comp_126
official c
named chunkPos
intermediary comp_127
official d
named world
intermediary comp_129
official e
named random
intermediary comp_130
official f
named seed
intermediary comp_131
official g
-
Field Summary
Modifier and TypeFieldDescriptionprivate 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 ChunkRandom
The field for therandom
record component.private final long
The field for theseed
record component.private final StructureTemplateManager
The field for thestructureTemplateManager
record component.private final HeightLimitView
The field for theworld
record component. -
Constructor Summary
ConstructorDescriptionContext
(C c, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, ChunkPos chunkPos, HeightLimitView heightLimitView, ChunkRandom chunkRandom, long long2) -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.final int
hashCode()
Returns a hash code value for this object.random()
Returns the value of therandom
record component.long
seed()
Returns the value of theseed
record component.Returns the value of thestructureTemplateManager
record component.final String
toString()
Returns a string representation of this record class.world()
Returns the value of theworld
record component.
-
Field Details
-
config
The field for theconfig
record component. -
chunkGenerator
The field for thechunkGenerator
record component. -
structureTemplateManager
The field for thestructureTemplateManager
record component. -
chunkPos
The field for thechunkPos
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(C c, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, ChunkPos chunkPos, HeightLimitView heightLimitView, ChunkRandom chunkRandom, long long2)
-
-
Method Details
-
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 '=='. -
config
Returns the value of theconfig
record component.- Returns:
- the value of the
config
record component
-
chunkGenerator
Returns the value of thechunkGenerator
record component.- Returns:
- the value of the
chunkGenerator
record component
-
structureTemplateManager
Returns the value of thestructureTemplateManager
record component.- Returns:
- the value of the
structureTemplateManager
record component
-
chunkPos
Returns the value of thechunkPos
record component.- Returns:
- the value of the
chunkPos
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
-