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/RealmsOptionsDto
intermediary net/minecraft/class_11308
official fyy
named slotId
intermediary comp_5012
official a
named spawnProtection
intermediary comp_5013
official b
named forceGameMode
intermediary comp_5014
official c
named difficulty
intermediary comp_5015
official d
named gameMode
intermediary comp_5016
official e
named slotName
intermediary comp_5017
official f
named version
intermediary comp_5018
official g
named compatibility
intermediary comp_5019
official h
named worldTemplateId
intermediary comp_5020
official i
named worldTemplateImage
intermediary comp_5021
official j
named hardcore
intermediary comp_5022
official k
  • Field Details

  • Constructor Details

    • RealmsOptionsDto

      public RealmsOptionsDto(int slotId, RealmsWorldOptions options, boolean hardcore)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/realms/dto/RealmsOptionsDto;<init>(ILnet/minecraft/client/realms/dto/RealmsWorldOptions;Z)V
      intermediary <init> Lnet/minecraft/class_11308;<init>(ILnet/minecraft/class_4883;Z)V
      official <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)V
      intermediary <init> Lnet/minecraft/class_11308;<init>(IIZIILjava/lang/String;Ljava/lang/String;Lnet/minecraft/class_4877$class_8842;JLjava/lang/String;Z)V
      official <init> Lfyy;<init>(IIZIILjava/lang/String;Ljava/lang/String;Lfyt$a;JLjava/lang/String;Z)V
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • slotId

      @SerializedName("slotId") public int slotId()
      Returns the value of the slotId record component.
      Returns:
      the value of the slotId record component
    • spawnProtection

      @SerializedName("spawnProtection") public int spawnProtection()
      Returns the value of the spawnProtection record component.
      Returns:
      the value of the spawnProtection record component
    • forceGameMode

      @SerializedName("forceGameMode") public boolean forceGameMode()
      Returns the value of the forceGameMode record component.
      Returns:
      the value of the forceGameMode record component
    • difficulty

      @SerializedName("difficulty") public int difficulty()
      Returns the value of the difficulty record component.
      Returns:
      the value of the difficulty record component
    • gameMode

      @SerializedName("gameMode") public int gameMode()
      Returns the value of the gameMode record component.
      Returns:
      the value of the gameMode record component
    • slotName

      @SerializedName("slotName") public String slotName()
      Returns the value of the slotName record component.
      Returns:
      the value of the slotName record component
    • version

      @SerializedName("version") public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • compatibility

      @SerializedName("compatibility") public RealmsServer.Compatibility compatibility()
      Returns the value of the compatibility record component.
      Returns:
      the value of the compatibility record component
    • worldTemplateId

      @SerializedName("worldTemplateId") public long worldTemplateId()
      Returns the value of the worldTemplateId record component.
      Returns:
      the value of the worldTemplateId record component
    • worldTemplateImage

      @Nullable @SerializedName("worldTemplateImage") public @Nullable String worldTemplateImage()
      Returns the value of the worldTemplateImage record component.
      Returns:
      the value of the worldTemplateImage record component
    • hardcore

      @SerializedName("hardcore") public boolean hardcore()
      Returns the value of the hardcore record component.
      Returns:
      the value of the hardcore record component