Record Class WorldGenContext
java.lang.Object
java.lang.Record
net.minecraft.world.level.chunk.status.WorldGenContext
public record WorldGenContext(ServerLevel level, ChunkGenerator generator, StructureTemplateManager structureManager, ThreadedLevelLightEngine lightEngine, ProcessorHandle<ChunkTaskPriorityQueueSorter.Message<Runnable>> mainThreadMailBox)
extends Record
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ChunkGenerator
The field for thegenerator
record component.private final ServerLevel
The field for thelevel
record component.private final ThreadedLevelLightEngine
The field for thelightEngine
record component.private final ProcessorHandle
<ChunkTaskPriorityQueueSorter.Message<Runnable>> The field for themainThreadMailBox
record component.private final StructureTemplateManager
The field for thestructureManager
record component. -
Constructor Summary
ConstructorDescriptionWorldGenContext
(ServerLevel level, ChunkGenerator generator, StructureTemplateManager structureManager, ThreadedLevelLightEngine lightEngine, ProcessorHandle<ChunkTaskPriorityQueueSorter.Message<Runnable>> mainThreadMailBox) Creates an instance of aWorldGenContext
record class. -
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.level()
Returns the value of thelevel
record component.Returns the value of thelightEngine
record component.Returns the value of themainThreadMailBox
record component.Returns the value of thestructureManager
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
level
The field for thelevel
record component. -
generator
The field for thegenerator
record component. -
structureManager
The field for thestructureManager
record component. -
lightEngine
The field for thelightEngine
record component. -
mainThreadMailBox
The field for themainThreadMailBox
record component.
-
-
Constructor Details
-
WorldGenContext
public WorldGenContext(ServerLevel level, ChunkGenerator generator, StructureTemplateManager structureManager, ThreadedLevelLightEngine lightEngine, ProcessorHandle<ChunkTaskPriorityQueueSorter.Message<Runnable>> mainThreadMailBox) Creates an instance of aWorldGenContext
record class.- Parameters:
level
- the value for thelevel
record componentgenerator
- the value for thegenerator
record componentstructureManager
- the value for thestructureManager
record componentlightEngine
- the value for thelightEngine
record componentmainThreadMailBox
- the value for themainThreadMailBox
record component
-
-
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)
. -
level
Returns the value of thelevel
record component.- Returns:
- the value of the
level
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
-
lightEngine
Returns the value of thelightEngine
record component.- Returns:
- the value of the
lightEngine
record component
-
mainThreadMailBox
Returns the value of themainThreadMailBox
record component.- Returns:
- the value of the
mainThreadMailBox
record component
-