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
-mainThreadExecutor
-unsavedListener
-
public record ChunkGenerationContext(ServerWorld world, ChunkGenerator generator, StructureTemplateManager structureManager, ServerLightingProvider lightingProvider, Executor mainThreadExecutor, WorldChunk.UnsavedListener unsavedListener)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/chunk/ChunkGenerationContext
intermediary net/minecraft/class_9312
official eav
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
named mainThreadExecutor
intermediary comp_2942
official e
named unsavedListener
intermediary comp_3323
official f
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ChunkGenerator
The field for thegenerator
record component.private final ServerLightingProvider
The field for thelightingProvider
record component.private final Executor
The field for themainThreadExecutor
record component.private final StructureTemplateManager
The field for thestructureManager
record component.private final WorldChunk.UnsavedListener
The field for theunsavedListener
record component.private final ServerWorld
The field for theworld
record component. -
Constructor Summary
ConstructorDescriptionChunkGenerationContext
(ServerWorld serverWorld, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, ServerLightingProvider serverLightingProvider, Executor executor, WorldChunk.UnsavedListener unsavedListener) -
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 themainThreadExecutor
record component.Returns the value of thestructureManager
record component.final String
toString()
Returns a string representation of this record class.Returns the value of theunsavedListener
record component.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. -
mainThreadExecutor
The field for themainThreadExecutor
record component. -
unsavedListener
The field for theunsavedListener
record component.
-
-
Constructor Details
-
ChunkGenerationContext
public ChunkGenerationContext(ServerWorld serverWorld, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, ServerLightingProvider serverLightingProvider, Executor executor, WorldChunk.UnsavedListener unsavedListener)
-
-
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
-
mainThreadExecutor
Returns the value of themainThreadExecutor
record component.- Returns:
- the value of the
mainThreadExecutor
record component
-
unsavedListener
Returns the value of theunsavedListener
record component.- Returns:
- the value of the
unsavedListener
record component
-