Package net.minecraft.client.realms.dto
Record Class RealmsWorldResetDto
java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.RealmsWorldResetDto
- Record Components:
seed-worldTemplateId-levelType-generateStructures-experiments-
- All Implemented Interfaces:
RealmsSerializable
@Environment(CLIENT)
public record RealmsWorldResetDto(String seed, long worldTemplateId, int levelType, boolean generateStructures, Set<String> experiments)
extends Record
implements RealmsSerializable
- Mappings:
Namespace Name named net/minecraft/client/realms/dto/RealmsWorldResetDtointermediary net/minecraft/class_4884official fzbnamed seedintermediary comp_5023official anamed worldTemplateIdintermediary comp_5024official bnamed levelTypeintermediary comp_5025official cnamed generateStructuresintermediary comp_5026official dnamed experimentsintermediary comp_5027official e
-
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
The field for theworldTemplateIdrecord component. -
levelType
The field for thelevelTyperecord component. -
generateStructures
The field for thegenerateStructuresrecord component. -
experiments
The field for theexperimentsrecord component.
-
-
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
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 '=='. -
seed
Returns the value of theseedrecord component.- Returns:
- the value of the
seedrecord component
-
worldTemplateId
Returns the value of theworldTemplateIdrecord component.- Returns:
- the value of the
worldTemplateIdrecord component
-
levelType
Returns the value of thelevelTyperecord component.- Returns:
- the value of the
levelTyperecord component
-
generateStructures
Returns the value of thegenerateStructuresrecord component.- Returns:
- the value of the
generateStructuresrecord component
-
experiments
Returns the value of theexperimentsrecord component.- Returns:
- the value of the
experimentsrecord component
-