Record Class BedrockPartyService.Party

java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.party.BedrockPartyService.Party
Enclosing class:
BedrockPartyService

public static record BedrockPartyService.Party(String id, String connectionString, boolean open, int maxPlayers, String leaderXuid, List<BedrockPartyService.Member> members) extends Record
  • Constructor Details

    • Party

      public Party(String id, String connectionString, boolean open, int maxPlayers, String leaderXuid, List<BedrockPartyService.Member> members)
      Creates an instance of a Party record class.
      Parameters:
      id - the value for the id record component
      connectionString - the value for the connectionString record component
      open - the value for the open record component
      maxPlayers - the value for the maxPlayers record component
      leaderXuid - the value for the leaderXuid record component
      members - the value for the members 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.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • connectionString

      public String connectionString()
      Returns the value of the connectionString record component.
      Returns:
      the value of the connectionString record component
    • open

      public boolean open()
      Returns the value of the open record component.
      Returns:
      the value of the open record component
    • maxPlayers

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

      public String leaderXuid()
      Returns the value of the leaderXuid record component.
      Returns:
      the value of the leaderXuid record component
    • members

      public List<BedrockPartyService.Member> members()
      Returns the value of the members record component.
      Returns:
      the value of the members record component