Record Class RealmsSlotUpdateDto

java.lang.Object
java.lang.Record
com.mojang.realmsclient.dto.RealmsSlotUpdateDto
All Implemented Interfaces:
ReflectionBasedSerialization

public record RealmsSlotUpdateDto(int slotId, int spawnProtection, boolean forceGameMode, int difficulty, int gameMode, String slotName, String version, RealmsServer.Compatibility compatibility, long templateId, @Nullable String templateImage, boolean hardcore) extends Record implements ReflectionBasedSerialization
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The field for the compatibility record component.
    private final int
    The field for the difficulty record component.
    private final boolean
    The field for the forceGameMode record component.
    private final int
    The field for the gameMode record component.
    private final boolean
    The field for the hardcore record component.
    private final int
    The field for the slotId record component.
    private final String
    The field for the slotName record component.
    private final int
    The field for the spawnProtection record component.
    private final long
    The field for the templateId record component.
    private final @Nullable String
    The field for the templateImage record component.
    private final String
    The field for the version record component.
  • Constructor Summary

    Constructors
    Constructor
    Description
    RealmsSlotUpdateDto(int slotId, int spawnProtection, boolean forceGameMode, int difficulty, int gameMode, String slotName, String version, RealmsServer.Compatibility compatibility, long templateId, @Nullable String templateImage, boolean hardcore)
    Creates an instance of a RealmsSlotUpdateDto record class.
    RealmsSlotUpdateDto(int p_419486_, RealmsWorldOptions p_419985_, boolean p_419522_)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the compatibility record component.
    int
    Returns the value of the difficulty record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    boolean
    Returns the value of the forceGameMode record component.
    int
    Returns the value of the gameMode record component.
    boolean
    Returns the value of the hardcore record component.
    final int
    Returns a hash code value for this object.
    int
    Returns the value of the slotId record component.
    Returns the value of the slotName record component.
    int
    Returns the value of the spawnProtection record component.
    long
    Returns the value of the templateId record component.
    @Nullable String
    Returns the value of the templateImage record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the version record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Field Details

    • slotId

      @SerializedName("slotId") private final int slotId
      The field for the slotId record component.
    • spawnProtection

      @SerializedName("spawnProtection") private final int spawnProtection
      The field for the spawnProtection record component.
    • forceGameMode

      @SerializedName("forceGameMode") private final boolean forceGameMode
      The field for the forceGameMode record component.
    • difficulty

      @SerializedName("difficulty") private final int difficulty
      The field for the difficulty record component.
    • gameMode

      @SerializedName("gameMode") private final int gameMode
      The field for the gameMode record component.
    • slotName

      @SerializedName("slotName") private final String slotName
      The field for the slotName record component.
    • version

      @SerializedName("version") private final String version
      The field for the version record component.
    • compatibility

      @SerializedName("compatibility") private final RealmsServer.Compatibility compatibility
      The field for the compatibility record component.
    • templateId

      @SerializedName("worldTemplateId") private final long templateId
      The field for the templateId record component.
    • templateImage

      @SerializedName("worldTemplateImage") private final @Nullable String templateImage
      The field for the templateImage record component.
    • hardcore

      @SerializedName("hardcore") private final boolean hardcore
      The field for the hardcore record component.
  • Constructor Details

    • RealmsSlotUpdateDto

      public RealmsSlotUpdateDto(int p_419486_, RealmsWorldOptions p_419985_, boolean p_419522_)
    • RealmsSlotUpdateDto

      public RealmsSlotUpdateDto(int slotId, int spawnProtection, boolean forceGameMode, int difficulty, int gameMode, String slotName, String version, RealmsServer.Compatibility compatibility, long templateId, @Nullable String templateImage, boolean hardcore)
      Creates an instance of a RealmsSlotUpdateDto record class.
      Parameters:
      slotId - the value for the slotId record component
      spawnProtection - the value for the spawnProtection record component
      forceGameMode - the value for the forceGameMode record component
      difficulty - the value for the difficulty record component
      gameMode - the value for the gameMode record component
      slotName - the value for the slotName record component
      version - the value for the version record component
      compatibility - the value for the compatibility record component
      templateId - the value for the templateId record component
      templateImage - the value for the templateImage record component
      hardcore - the value for the hardcore record component
  • 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 o)
      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:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o 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
    • templateId

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

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

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