Record Class RealmsWorldResetDto
java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.RealmsWorldResetDto
- All Implemented Interfaces:
ReflectionBasedSerialization
public record RealmsWorldResetDto(String seed, long worldTemplateId, int levelType, boolean generateStructures, Set<String> experiments)
extends Record
implements ReflectionBasedSerialization
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe field for theexperimentsrecord component.private final booleanThe field for thegenerateStructuresrecord component.private final intThe field for thelevelTyperecord component.private final StringThe field for theseedrecord component.private final longThe field for theworldTemplateIdrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRealmsWorldResetDto(String seed, long worldTemplateId, int levelType, boolean generateStructures, Set<String> experiments) Creates an instance of aRealmsWorldResetDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theexperimentsrecord component.booleanReturns the value of thegenerateStructuresrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of thelevelTyperecord component.seed()Returns the value of theseedrecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of theworldTemplateIdrecord component.
-
Field Details
-
seed
The field for theseedrecord component. -
worldTemplateId
@SerializedName("worldTemplateId") private final long worldTemplateIdThe field for theworldTemplateIdrecord component. -
levelType
@SerializedName("levelType") private final int levelTypeThe field for thelevelTyperecord component. -
generateStructures
@SerializedName("generateStructures") private final boolean generateStructuresThe field for thegenerateStructuresrecord component. -
experiments
-
-
Constructor Details
-
RealmsWorldResetDto
public RealmsWorldResetDto(String seed, long worldTemplateId, int levelType, boolean generateStructures, Set<String> experiments) Creates an instance of aRealmsWorldResetDtorecord class.- Parameters:
seed- the value for theseedrecord componentworldTemplateId- the value for theworldTemplateIdrecord componentlevelType- the value for thelevelTyperecord componentgenerateStructures- the value for thegenerateStructuresrecord componentexperiments- the value for theexperimentsrecord component
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
seed
Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
worldTemplateId
@SerializedName("worldTemplateId") public long worldTemplateId()Returns the value of theworldTemplateIdrecord component.- Returns:
- the value of the
worldTemplateIdrecord component
-
levelType
@SerializedName("levelType") public int levelType()Returns the value of thelevelTyperecord component.- Returns:
- the value of the
levelTyperecord component
-
generateStructures
@SerializedName("generateStructures") public boolean generateStructures()Returns the value of thegenerateStructuresrecord component.- Returns:
- the value of the
generateStructuresrecord component
-
experiments
-