Record Class BedrockPartyDestination
java.lang.Object
java.lang.Record
com.viaversion.viafabricplus.bedrock.party.BedrockPartyDestination
public record BedrockPartyDestination(BedrockPartyDestination.Type type, String id, int port, String name, String cookie, BedrockPartyDestination.Intent intent)
extends Record
The destination advertised by a native party's PlayFab lobby.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumstatic enum -
Constructor Summary
ConstructorsConstructorDescriptionBedrockPartyDestination(BedrockPartyDestination.Type type, String id, int port, String name, String cookie, BedrockPartyDestination.Intent intent) Creates an instance of aBedrockPartyDestinationrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncookie()Returns the value of thecookierecord 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.intent()Returns the value of theintentrecord component.name()Returns the value of thenamerecord component.static @Nullable BedrockPartyDestinationparse(com.google.gson.JsonObject lobby) intport()Returns the value of theportrecord component.booleansameTarget(@Nullable BedrockPartyDestination other) final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
BedrockPartyDestination
public BedrockPartyDestination(BedrockPartyDestination.Type type, String id, int port, String name, String cookie, BedrockPartyDestination.Intent intent) Creates an instance of aBedrockPartyDestinationrecord class.- Parameters:
type- the value for thetyperecord componentid- the value for theidrecord componentport- the value for theportrecord componentname- the value for thenamerecord componentcookie- the value for thecookierecord componentintent- the value for theintentrecord component
-
-
Method Details
-
sameTarget
-
parse
-
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. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
port
public int port()Returns the value of theportrecord component.- Returns:
- the value of the
portrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
cookie
Returns the value of thecookierecord component.- Returns:
- the value of the
cookierecord component
-
intent
Returns the value of theintentrecord component.- Returns:
- the value of the
intentrecord component
-