Package net.minecraft.world.chunk
Record Class ChunkGenerationContext
java.lang.Object
java.lang.Record
net.minecraft.world.chunk.ChunkGenerationContext
- Record Components:
world
-generator
-structureManager
-lightingProvider
-
public record ChunkGenerationContext(ServerWorld world, ChunkGenerator generator, StructureTemplateManager structureManager, ServerLightingProvider lightingProvider)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/chunk/ChunkGenerationContext
intermediary net/minecraft/class_9312
official dvc
named world
intermediary comp_2434
official a
named generator
intermediary comp_2435
official b
named structureManager
intermediary comp_2436
official c
named lightingProvider
intermediary comp_2437
official d
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ChunkGenerator
The field for thegenerator
record component.private final ServerLightingProvider
The field for thelightingProvider
record component.private final StructureTemplateManager
The field for thestructureManager
record component.private final ServerWorld
The field for theworld
record component. -
Constructor Summary
ConstructorDescriptionChunkGenerationContext
(ServerWorld serverWorld, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, ServerLightingProvider serverLightingProvider) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of thegenerator
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelightingProvider
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
-
world
The field for theworld
record component. -
generator
The field for thegenerator
record component. -
structureManager
The field for thestructureManager
record component. -
lightingProvider
The field for thelightingProvider
record component.
-
-
Constructor Details
-
ChunkGenerationContext
public ChunkGenerationContext(ServerWorld serverWorld, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, ServerLightingProvider serverLightingProvider)
-
-
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. All components in this record class are compared withObjects::equals(Object,Object)
. -
world
Returns the value of theworld
record component.- Returns:
- the value of the
world
record component
-
generator
Returns the value of thegenerator
record component.- Returns:
- the value of the
generator
record component
-
structureManager
Returns the value of thestructureManager
record component.- Returns:
- the value of the
structureManager
record component
-
lightingProvider
Returns the value of thelightingProvider
record component.- Returns:
- the value of the
lightingProvider
record component
-