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 SummaryFieldsModifier 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 SummaryConstructorsConstructorDescriptionWorldDimensionData(com.google.gson.JsonObject generatorSettings, String levelType) Creates an instance of aWorldDimensionDatarecord class.
- 
Method SummaryModifier 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- 
generatorSettingsprivate final com.google.gson.JsonObject generatorSettingsThe field for thegeneratorSettingsrecord component.
- 
levelTypeThe field for thelevelTyperecord component.
- 
LEGACY_PRESET_NAMES
 
- 
- 
Constructor Details- 
WorldDimensionDataWorldDimensionData(com.google.gson.JsonObject generatorSettings, String levelType) Creates an instance of aWorldDimensionDatarecord class.- Parameters:
- generatorSettings- the value for the- generatorSettingsrecord component
- levelType- the value for the- levelTyperecord component
 
 
- 
- 
Method Details- 
create
- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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).
- 
generatorSettingspublic com.google.gson.JsonObject generatorSettings()Returns the value of thegeneratorSettingsrecord component.- Returns:
- the value of the generatorSettingsrecord component
 
- 
levelTypeReturns the value of thelevelTyperecord component.- Returns:
- the value of the levelTyperecord component
 
 
-