Package net.minecraft.server.dedicated
Record Class DedicatedServerProperties.WorldDimensionData
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.DedicatedServerProperties.WorldDimensionData
- Enclosing class:
DedicatedServerProperties
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.google.gson.JsonObject
The field for thegeneratorSettings
record component.private static final Map<String,
ResourceKey<WorldPreset>> private final String
The field for thelevelType
record component. -
Constructor Summary
ConstructorDescriptionWorldDimensionData
(com.google.gson.JsonObject generatorSettings, String levelType) Creates an instance of aWorldDimensionData
record class. -
Method Summary
Modifier and TypeMethodDescriptioncreate
(RegistryAccess p_248812_) final boolean
Indicates whether some other object is "equal to" this one.com.google.gson.JsonObject
Returns the value of thegeneratorSettings
record component.final int
hashCode()
Returns a hash code value for this object.Returns the value of thelevelType
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
generatorSettings
private final com.google.gson.JsonObject generatorSettingsThe field for thegeneratorSettings
record component. -
levelType
The field for thelevelType
record component. -
LEGACY_PRESET_NAMES
-
-
Constructor Details
-
WorldDimensionData
WorldDimensionData(com.google.gson.JsonObject generatorSettings, String levelType) Creates an instance of aWorldDimensionData
record class.- Parameters:
generatorSettings
- the value for thegeneratorSettings
record componentlevelType
- the value for thelevelType
record component
-
-
Method Details
-
create
-
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)
. -
generatorSettings
public com.google.gson.JsonObject generatorSettings()Returns the value of thegeneratorSettings
record component.- Returns:
- the value of the
generatorSettings
record component
-
levelType
Returns the value of thelevelType
record component.- Returns:
- the value of the
levelType
record component
-