Record Class BedrockPartyService.Party
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.party.BedrockPartyService.Party
- Enclosing class:
BedrockPartyService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconnectionStringrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theleaderXuidrecord component.intReturns the value of themaxPlayersrecord component.members()Returns the value of themembersrecord component.booleanopen()Returns the value of theopenrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Party
public Party(String id, String connectionString, boolean open, int maxPlayers, String leaderXuid, List<BedrockPartyService.Member> members) Creates an instance of aPartyrecord class.- Parameters:
id- the value for theidrecord componentconnectionString- the value for theconnectionStringrecord componentopen- the value for theopenrecord componentmaxPlayers- the value for themaxPlayersrecord componentleaderXuid- the value for theleaderXuidrecord componentmembers- the value for themembersrecord component
-
-
Method Details
-
toString
-
hashCode
-
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 thecomparemethod from their corresponding wrapper classes. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
connectionString
Returns the value of theconnectionStringrecord component.- Returns:
- the value of the
connectionStringrecord component
-
open
public boolean open()Returns the value of theopenrecord component.- Returns:
- the value of the
openrecord component
-
maxPlayers
public int maxPlayers()Returns the value of themaxPlayersrecord component.- Returns:
- the value of the
maxPlayersrecord component
-
leaderXuid
Returns the value of theleaderXuidrecord component.- Returns:
- the value of the
leaderXuidrecord component
-
members
Returns the value of themembersrecord component.- Returns:
- the value of the
membersrecord component
-