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/ChunkGenerationContextintermediary net/minecraft/class_9312official eetnamed worldintermediary comp_2434official anamed generatorintermediary comp_2435official bnamed structureManagerintermediary comp_2436official cnamed lightingProviderintermediary comp_2437official dnamed mainThreadExecutorintermediary comp_2942official enamed unsavedListenerintermediary comp_3323official f
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChunkGeneratorThe field for thegeneratorrecord component.private final ServerLightingProviderThe field for thelightingProviderrecord component.private final ExecutorThe field for themainThreadExecutorrecord component.private final StructureTemplateManagerThe field for thestructureManagerrecord component.private final WorldChunk.UnsavedListenerThe field for theunsavedListenerrecord component.private final ServerWorldThe field for theworldrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionChunkGenerationContext(ServerWorld serverWorld, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, ServerLightingProvider serverLightingProvider, Executor executor, WorldChunk.UnsavedListener unsavedListener) -
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 themainThreadExecutorrecord component.Returns the value of thestructureManagerrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theunsavedListenerrecord component.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. -
mainThreadExecutor
The field for themainThreadExecutorrecord component. -
unsavedListener
The field for theunsavedListenerrecord 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 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
-
mainThreadExecutor
Returns the value of themainThreadExecutorrecord component.- Returns:
- the value of the
mainThreadExecutorrecord component
-
unsavedListener
Returns the value of theunsavedListenerrecord component.- Returns:
- the value of the
unsavedListenerrecord component
-