Package net.minecraft.server.dedicated
Record Class DedicatedServerProperties.WorldGenProperties
java.lang.Object
java.lang.Record
net.minecraft.server.dedicated.DedicatedServerProperties.WorldGenProperties
- Enclosing class:
- DedicatedServerProperties
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for thegenerateStructuresrecord component.private final com.google.gson.JsonObjectThe field for thegeneratorSettingsrecord component.private final StringThe field for thelevelSeedrecord component.private final StringThe field for thelevelTyperecord component. -
Constructor Summary
ConstructorsConstructorDescriptionWorldGenProperties(String levelSeed, com.google.gson.JsonObject generatorSettings, boolean generateStructures, String levelType) Creates an instance of aWorldGenPropertiesrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of thegenerateStructuresrecord component.com.google.gson.JsonObjectReturns the value of thegeneratorSettingsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelevelSeedrecord component.Returns the value of thelevelTyperecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
levelSeed
The field for thelevelSeedrecord component. -
generatorSettings
private final com.google.gson.JsonObject generatorSettingsThe field for thegeneratorSettingsrecord component. -
generateStructures
private final boolean generateStructuresThe field for thegenerateStructuresrecord component. -
levelType
The field for thelevelTyperecord component.
-
-
Constructor Details
-
WorldGenProperties
public WorldGenProperties(String levelSeed, com.google.gson.JsonObject generatorSettings, boolean generateStructures, String levelType) Creates an instance of aWorldGenPropertiesrecord class.- Parameters:
levelSeed- the value for thelevelSeedrecord componentgeneratorSettings- the value for thegeneratorSettingsrecord componentgenerateStructures- the value for thegenerateStructuresrecord componentlevelType- the value for thelevelTyperecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
levelSeed
Returns the value of thelevelSeedrecord component.- Returns:
- the value of the
levelSeedrecord component
-
generatorSettings
public com.google.gson.JsonObject generatorSettings()Returns the value of thegeneratorSettingsrecord component.- Returns:
- the value of the
generatorSettingsrecord component
-
generateStructures
public boolean generateStructures()Returns the value of thegenerateStructuresrecord component.- Returns:
- the value of the
generateStructuresrecord component
-
levelType
Returns the value of thelevelTyperecord component.- Returns:
- the value of the
levelTyperecord component
-