Record Class BedrockFriendsService.FriendWorld

java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.friends.BedrockFriendsService.FriendWorld
Enclosing class:
BedrockFriendsService

public static record BedrockFriendsService.FriendWorld(String handleId, String ownerXuid, String hostName, String worldName, String version, int players, int maxPlayers, int protocol, SocketAddress address) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    FriendWorld(String handleId, String ownerXuid, String hostName, String worldName, String version, int players, int maxPlayers, int protocol, SocketAddress address)
    Creates an instance of a FriendWorld record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the address record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    Returns the value of the handleId record component.
    final int
    Returns a hash code value for this object.
    Returns the value of the hostName record component.
    int
    Returns the value of the maxPlayers record component.
    Returns the value of the ownerXuid record component.
    int
    Returns the value of the players record component.
    int
    Returns the value of the protocol record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the version record component.
    Returns the value of the worldName record component.

    Methods inherited from class Object

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

    • FriendWorld

      public FriendWorld(String handleId, String ownerXuid, String hostName, String worldName, String version, int players, int maxPlayers, int protocol, SocketAddress address)
      Creates an instance of a FriendWorld record class.
      Parameters:
      handleId - the value for the handleId record component
      ownerXuid - the value for the ownerXuid record component
      hostName - the value for the hostName record component
      worldName - the value for the worldName record component
      version - the value for the version record component
      players - the value for the players record component
      maxPlayers - the value for the maxPlayers record component
      protocol - the value for the protocol record component
      address - the value for the address 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 the compare method from their corresponding wrapper classes.
      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.
    • handleId

      public String handleId()
      Returns the value of the handleId record component.
      Returns:
      the value of the handleId record component
    • ownerXuid

      public String ownerXuid()
      Returns the value of the ownerXuid record component.
      Returns:
      the value of the ownerXuid record component
    • hostName

      public String hostName()
      Returns the value of the hostName record component.
      Returns:
      the value of the hostName record component
    • worldName

      public String worldName()
      Returns the value of the worldName record component.
      Returns:
      the value of the worldName record component
    • version

      public String version()
      Returns the value of the version record component.
      Returns:
      the value of the version record component
    • players

      public int players()
      Returns the value of the players record component.
      Returns:
      the value of the players record component
    • maxPlayers

      public int maxPlayers()
      Returns the value of the maxPlayers record component.
      Returns:
      the value of the maxPlayers record component
    • protocol

      public int protocol()
      Returns the value of the protocol record component.
      Returns:
      the value of the protocol record component
    • address

      public SocketAddress address()
      Returns the value of the address record component.
      Returns:
      the value of the address record component