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-mainThreadMailBox-
public record ChunkGenerationContext(ServerWorld world, ChunkGenerator generator, StructureTemplateManager structureManager, ServerLightingProvider lightingProvider, MessageListener<ChunkTaskPrioritySystem.Task<Runnable>> mainThreadMailBox)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/chunk/ChunkGenerationContextintermediary net/minecraft/class_9312official dwenamed worldintermediary comp_2434official anamed generatorintermediary comp_2435official bnamed structureManagerintermediary comp_2436official cnamed lightingProviderintermediary comp_2437official dnamed mainThreadMailBoxintermediary comp_2808official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChunkGeneratorThe field for thegeneratorrecord component.private final ServerLightingProviderThe field for thelightingProviderrecord component.private final MessageListener<ChunkTaskPrioritySystem.Task<Runnable>> The field for themainThreadMailBoxrecord component.private final StructureTemplateManagerThe field for thestructureManagerrecord component.private final ServerWorldThe field for theworldrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionChunkGenerationContext(ServerWorld serverWorld, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, ServerLightingProvider serverLightingProvider, MessageListener<ChunkTaskPrioritySystem.Task<Runnable>> messageListener) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratorrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelightingProviderrecord component.Returns the value of themainThreadMailBoxrecord component.Returns the value of thestructureManagerrecord component.final StringtoString()Returns a string representation of this record class.world()Returns the value of theworldrecord component.
-
Field Details
-
world
The field for theworldrecord component. -
generator
The field for thegeneratorrecord component. -
structureManager
The field for thestructureManagerrecord component. -
lightingProvider
The field for thelightingProviderrecord component. -
mainThreadMailBox
The field for themainThreadMailBoxrecord component.
-
-
Constructor Details
-
ChunkGenerationContext
public ChunkGenerationContext(ServerWorld serverWorld, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, ServerLightingProvider serverLightingProvider, MessageListener<ChunkTaskPrioritySystem.Task<Runnable>> messageListener)
-
-
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 theworldrecord component.- Returns:
- the value of the
worldrecord component
-
generator
Returns the value of thegeneratorrecord component.- Returns:
- the value of the
generatorrecord component
-
structureManager
Returns the value of thestructureManagerrecord component.- Returns:
- the value of the
structureManagerrecord component
-
lightingProvider
Returns the value of thelightingProviderrecord component.- Returns:
- the value of the
lightingProviderrecord component
-
mainThreadMailBox
Returns the value of themainThreadMailBoxrecord component.- Returns:
- the value of the
mainThreadMailBoxrecord component
-