Package net.minecraft.client.realms.dto
Record Class RealmsOptionsDto
java.lang.Object
java.lang.Record
net.minecraft.client.realms.dto.RealmsOptionsDto
- Record Components:
slotId-spawnProtection-forceGameMode-difficulty-gameMode-slotName-version-compatibility-worldTemplateId-worldTemplateImage-hardcore-
- All Implemented Interfaces:
RealmsSerializable
@Environment(CLIENT)
public record RealmsOptionsDto(int slotId, int spawnProtection, boolean forceGameMode, int difficulty, int gameMode, String slotName, String version, RealmsServer.Compatibility compatibility, long worldTemplateId, @Nullable String worldTemplateImage, boolean hardcore)
extends Record
implements RealmsSerializable
- Mappings:
Namespace Name named net/minecraft/client/realms/dto/RealmsOptionsDtointermediary net/minecraft/class_11308official fyynamed slotIdintermediary comp_5012official anamed spawnProtectionintermediary comp_5013official bnamed forceGameModeintermediary comp_5014official cnamed difficultyintermediary comp_5015official dnamed gameModeintermediary comp_5016official enamed slotNameintermediary comp_5017official fnamed versionintermediary comp_5018official gnamed compatibilityintermediary comp_5019official hnamed worldTemplateIdintermediary comp_5020official inamed worldTemplateImageintermediary comp_5021official jnamed hardcoreintermediary comp_5022official k
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final RealmsServer.CompatibilityThe field for thecompatibilityrecord component.private final intThe field for thedifficultyrecord component.private final booleanThe field for theforceGameModerecord component.private final intThe field for thegameModerecord component.private final booleanThe field for thehardcorerecord component.private final intThe field for theslotIdrecord component.private final StringThe field for theslotNamerecord component.private final intThe field for thespawnProtectionrecord component.private final StringThe field for theversionrecord component.private final longThe field for theworldTemplateIdrecord component.The field for theworldTemplateImagerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionRealmsOptionsDto(int slotId, int spawnProtection, boolean forceGameMode, int difficulty, int gameMode, String slotName, String version, RealmsServer.Compatibility compatibility, long templateId, @Nullable String templateImage, boolean hardcore) RealmsOptionsDto(int slotId, RealmsWorldOptions options, boolean hardcore) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompatibilityrecord component.intReturns the value of thedifficultyrecord component.final booleanIndicates whether some other object is "equal to" this one.booleanReturns the value of theforceGameModerecord component.intgameMode()Returns the value of thegameModerecord component.booleanhardcore()Returns the value of thehardcorerecord component.final inthashCode()Returns a hash code value for this object.intslotId()Returns the value of theslotIdrecord component.slotName()Returns the value of theslotNamerecord component.intReturns the value of thespawnProtectionrecord component.final StringtoString()Returns a string representation of this record class.version()Returns the value of theversionrecord component.longReturns the value of theworldTemplateIdrecord component.Returns the value of theworldTemplateImagerecord component.
-
Field Details
-
slotId
The field for theslotIdrecord component. -
spawnProtection
The field for thespawnProtectionrecord component. -
forceGameMode
The field for theforceGameModerecord component. -
difficulty
The field for thedifficultyrecord component. -
gameMode
The field for thegameModerecord component. -
slotName
The field for theslotNamerecord component. -
version
The field for theversionrecord component. -
compatibility
The field for thecompatibilityrecord component. -
worldTemplateId
The field for theworldTemplateIdrecord component. -
worldTemplateImage
The field for theworldTemplateImagerecord component. -
hardcore
The field for thehardcorerecord component.
-
-
Constructor Details
-
RealmsOptionsDto
- Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/realms/dto/RealmsOptionsDto;<init>(ILnet/minecraft/client/realms/dto/RealmsWorldOptions;Z)Vintermediary <init>Lnet/minecraft/class_11308;<init>(ILnet/minecraft/class_4883;Z)Vofficial <init>Lfyy;<init>(ILfza;Z)V
-
RealmsOptionsDto
public RealmsOptionsDto(int slotId, int spawnProtection, boolean forceGameMode, int difficulty, int gameMode, String slotName, String version, RealmsServer.Compatibility compatibility, long templateId, @Nullable @Nullable String templateImage, boolean hardcore) - Mappings:
Namespace Name Mixin selector named <init>Lnet/minecraft/client/realms/dto/RealmsOptionsDto;<init>(IIZIILjava/lang/String;Ljava/lang/String;Lnet/minecraft/client/realms/dto/RealmsServer$Compatibility;JLjava/lang/String;Z)Vintermediary <init>Lnet/minecraft/class_11308;<init>(IIZIILjava/lang/String;Ljava/lang/String;Lnet/minecraft/class_4877$class_8842;JLjava/lang/String;Z)Vofficial <init>Lfyy;<init>(IIZIILjava/lang/String;Ljava/lang/String;Lfyt$a;JLjava/lang/String;Z)V
-
-
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 '=='. -
slotId
Returns the value of theslotIdrecord component.- Returns:
- the value of the
slotIdrecord component
-
spawnProtection
Returns the value of thespawnProtectionrecord component.- Returns:
- the value of the
spawnProtectionrecord component
-
forceGameMode
Returns the value of theforceGameModerecord component.- Returns:
- the value of the
forceGameModerecord component
-
difficulty
Returns the value of thedifficultyrecord component.- Returns:
- the value of the
difficultyrecord component
-
gameMode
Returns the value of thegameModerecord component.- Returns:
- the value of the
gameModerecord component
-
slotName
Returns the value of theslotNamerecord component.- Returns:
- the value of the
slotNamerecord component
-
version
Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
compatibility
Returns the value of thecompatibilityrecord component.- Returns:
- the value of the
compatibilityrecord component
-
worldTemplateId
Returns the value of theworldTemplateIdrecord component.- Returns:
- the value of the
worldTemplateIdrecord component
-
worldTemplateImage
Returns the value of theworldTemplateImagerecord component.- Returns:
- the value of the
worldTemplateImagerecord component
-
hardcore
Returns the value of thehardcorerecord component.- Returns:
- the value of the
hardcorerecord component
-