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
FieldsModifier and TypeFieldDescriptionprivate final com.google.gson.JsonObjectThe field for thegeneratorSettingsrecord component.private static final Map<String, ResourceKey<WorldPreset>> private final StringThe field for thelevelTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWorldDimensionData(com.google.gson.JsonObject generatorSettings, String levelType) Creates an instance of aWorldDimensionDatarecord class. -
Method Summary
Modifier and TypeMethodDescriptioncreate(RegistryAccess p_248812_) final booleanIndicates whether some other object is "equal to" this one.com.google.gson.JsonObjectReturns 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
private final com.google.gson.JsonObject generatorSettingsThe field for thegeneratorSettingsrecord component. -
levelType
The field for thelevelTyperecord component. -
LEGACY_PRESET_NAMES
-
-
Constructor Details
-
WorldDimensionData
WorldDimensionData(com.google.gson.JsonObject generatorSettings, String levelType) Creates an instance of aWorldDimensionDatarecord class.- Parameters:
generatorSettings- the value for thegeneratorSettingsrecord componentlevelType- the value for thelevelTyperecord 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 thegeneratorSettingsrecord component.- Returns:
- the value of the
generatorSettingsrecord component
-
levelType
Returns the value of thelevelTyperecord component.- Returns:
- the value of the
levelTyperecord component
-