Record Class DedicatedServerProperties.WorldDimensionData
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.DedicatedServerProperties.WorldDimensionData
- Enclosing class:
DedicatedServerProperties
private static record DedicatedServerProperties.WorldDimensionData(JsonObject generatorSettings, String levelType)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JsonObjectThe field for thegeneratorSettingsrecord component.private static final Map<String, ResourceKey<WorldPreset>> private final StringThe field for thelevelTyperecord component. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateWorldDimensionData(JsonObject generatorSettings, String levelType) Creates an instance of aWorldDimensionDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreate(HolderLookup.Provider registries) final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratorSettingsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelevelTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
generatorSettings
The field for thegeneratorSettingsrecord component. -
levelType
The field for thelevelTyperecord component. -
LEGACY_PRESET_NAMES
-
-
Constructor Details
-
WorldDimensionData
Creates an instance of aWorldDimensionDatarecord class.- Parameters:
generatorSettings- the value for thegeneratorSettingsrecord componentlevelType- the value for thelevelTyperecord component
-
-
Method Details
-
create
-
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). -
generatorSettings
Returns the value of thegeneratorSettingsrecord component.- Returns:
- the value of the
generatorSettingsrecord component
-
levelType
Returns the value of thelevelTyperecord component.- Returns:
- the value of the
levelTyperecord component
-