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 - dzz- 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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionChunkGenerationContext(ServerWorld serverWorld, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, ServerLightingProvider serverLightingProvider, Executor executor, WorldChunk.UnsavedListener unsavedListener) 
- 
Method SummaryModifier 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- 
worldThe field for theworldrecord component.
- 
generatorThe field for thegeneratorrecord component.
- 
structureManagerThe field for thestructureManagerrecord component.
- 
lightingProviderThe field for thelightingProviderrecord component.
- 
mainThreadExecutorThe field for themainThreadExecutorrecord component.
- 
unsavedListenerThe field for theunsavedListenerrecord component.
 
- 
- 
Constructor Details- 
ChunkGenerationContextpublic ChunkGenerationContext(ServerWorld serverWorld, ChunkGenerator chunkGenerator, StructureTemplateManager structureTemplateManager, ServerLightingProvider serverLightingProvider, Executor executor, WorldChunk.UnsavedListener unsavedListener) 
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
worldReturns the value of theworldrecord component.- Returns:
- the value of the worldrecord component
 
- 
generatorReturns the value of thegeneratorrecord component.- Returns:
- the value of the generatorrecord component
 
- 
structureManagerReturns the value of thestructureManagerrecord component.- Returns:
- the value of the structureManagerrecord component
 
- 
lightingProviderReturns the value of thelightingProviderrecord component.- Returns:
- the value of the lightingProviderrecord component
 
- 
mainThreadExecutorReturns the value of themainThreadExecutorrecord component.- Returns:
- the value of the mainThreadExecutorrecord component
 
- 
unsavedListenerReturns the value of theunsavedListenerrecord component.- Returns:
- the value of the unsavedListenerrecord component
 
 
-