Record Class LevelDataAndDimensions.WorldDataAndGenSettings
java.lang.Object
java.lang.Record
net.minecraft.world.level.storage.LevelDataAndDimensions.WorldDataAndGenSettings
- Enclosing class:
LevelDataAndDimensions
public static record LevelDataAndDimensions.WorldDataAndGenSettings(WorldData data, WorldGenSettings genSettings)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final WorldDataThe field for thedatarecord component.private final WorldGenSettingsThe field for thegenSettingsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWorldDataAndGenSettings(WorldData data, WorldGenSettings genSettings) Creates an instance of aWorldDataAndGenSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondata()Returns the value of thedatarecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegenSettingsrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
data
The field for thedatarecord component. -
genSettings
The field for thegenSettingsrecord component.
-
-
Constructor Details
-
WorldDataAndGenSettings
Creates an instance of aWorldDataAndGenSettingsrecord class.- Parameters:
data- the value for thedatarecord componentgenSettings- the value for thegenSettingsrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
data
Returns the value of thedatarecord component.- Returns:
- the value of the
datarecord component
-
genSettings
Returns the value of thegenSettingsrecord component.- Returns:
- the value of the
genSettingsrecord component
-