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 - eoa$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 SummaryFieldsModifier and TypeFieldDescriptionprivate final ChunkGeneratorThe field for thechunkGeneratorrecord component.private final ChunkPosThe field for thechunkPosrecord component.private final CThe field for theconfigrecord component.private final ChunkRandomThe field for therandomrecord component.private final longThe field for theseedrecord component.private final StructureTemplateManagerThe field for thestructureTemplateManagerrecord component.private final HeightLimitViewThe field for theworldrecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionContext(C c, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, ChunkPos chunkPos, HeightLimitView heightLimitView, ChunkRandom chunkRandom, long long2) 
- 
Method SummaryModifier and TypeMethodDescriptionReturns 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.final inthashCode()Returns a hash code value for this object.random()Returns the value of therandomrecord component.longseed()Returns the value of theseedrecord component.Returns the value of thestructureTemplateManagerrecord component.final StringtoString()Returns a string representation of this record class.world()Returns the value of theworldrecord component.
- 
Field Details- 
configThe field for theconfigrecord component.
- 
chunkGeneratorThe field for thechunkGeneratorrecord component.
- 
structureTemplateManagerThe field for thestructureTemplateManagerrecord component.
- 
chunkPosThe field for thechunkPosrecord component.
- 
worldThe field for theworldrecord component.
- 
randomThe field for therandomrecord component.
- 
seedprivate final long seedThe field for theseedrecord component.
 
- 
- 
Constructor Details- 
Contextpublic Context(C c, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, ChunkPos chunkPos, HeightLimitView heightLimitView, ChunkRandom chunkRandom, long long2) 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
configReturns the value of theconfigrecord component.- Returns:
- the value of the configrecord component
 
- 
chunkGeneratorReturns the value of thechunkGeneratorrecord component.- Returns:
- the value of the chunkGeneratorrecord component
 
- 
structureTemplateManagerReturns the value of thestructureTemplateManagerrecord component.- Returns:
- the value of the structureTemplateManagerrecord component
 
- 
chunkPosReturns the value of thechunkPosrecord component.- Returns:
- the value of the chunkPosrecord component
 
- 
worldReturns the value of theworldrecord component.- Returns:
- the value of the worldrecord component
 
- 
randomReturns the value of therandomrecord component.- Returns:
- the value of the randomrecord component
 
- 
seedpublic long seed()Returns the value of theseedrecord component.- Returns:
- the value of the seedrecord component
 
 
-