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)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChunkGeneratorThe field for thegeneratorrecord component.private final ServerLevelThe field for thelevelrecord component.private final ThreadedLevelLightEngineThe field for thelightEnginerecord component.private final StructureTemplateManagerThe field for thestructureManagerrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWorldGenContext(ServerLevel level, ChunkGenerator generator, StructureTemplateManager structureManager, ThreadedLevelLightEngine lightEngine) Creates an instance of aWorldGenContextrecord class. -
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.level()Returns the value of thelevelrecord component.Returns the value of thelightEnginerecord component.Returns the value of thestructureManagerrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
level
The field for thelevelrecord component. -
generator
The field for thegeneratorrecord component. -
structureManager
The field for thestructureManagerrecord component. -
lightEngine
The field for thelightEnginerecord component.
-
-
Constructor Details
-
WorldGenContext
public WorldGenContext(ServerLevel level, ChunkGenerator generator, StructureTemplateManager structureManager, ThreadedLevelLightEngine lightEngine) Creates an instance of aWorldGenContextrecord class.- Parameters:
level- the value for thelevelrecord componentgenerator- the value for thegeneratorrecord componentstructureManager- the value for thestructureManagerrecord componentlightEngine- the value for thelightEnginerecord 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 thelevelrecord component.- Returns:
- the value of the
levelrecord 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
-
lightEngine
Returns the value of thelightEnginerecord component.- Returns:
- the value of the
lightEnginerecord component
-