Package com.btcvelocity.api.bridge
Record Class BridgeMessage.QueueJoin
java.lang.Object
java.lang.Record
com.btcvelocity.api.bridge.BridgeMessage.QueueJoin
- Record Components:
uuid- the player's unique idusername- the player's usernametargetServer- the name of the server the player queued fortargetWorld- an optional world the player intends to join, may benull
- All Implemented Interfaces:
BridgeMessage
- Enclosing interface:
BridgeMessage
public static record BridgeMessage.QueueJoin(UUID uuid, String username, String targetServer, @Nullable String targetWorld)
extends Record
implements BridgeMessage
Proxy -> Backend: a player joined the queue for a server.
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.btcvelocity.api.bridge.BridgeMessage
BridgeMessage.ConnectRequest, BridgeMessage.Health, BridgeMessage.PartyWarp, BridgeMessage.QueueJoin, BridgeMessage.QueueLeave, BridgeMessage.QueueStatusResponse, BridgeMessage.RequestStatus, BridgeMessage.WorldLoaded, BridgeMessage.WorldPreload, BridgeMessage.WorldUnloaded -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thetargetServerrecord component.@Nullable StringReturns the value of thetargetWorldrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the string discriminator used to route this message during (de)serialization.username()Returns the value of theusernamerecord component.uuid()Returns the value of theuuidrecord component.
-
Constructor Details
-
QueueJoin
public QueueJoin(UUID uuid, String username, String targetServer, @Nullable @Nullable String targetWorld) Creates an instance of aQueueJoinrecord class.- Parameters:
uuid- the value for theuuidrecord componentusername- the value for theusernamerecord componenttargetServer- the value for thetargetServerrecord componenttargetWorld- the value for thetargetWorldrecord component
-
-
Method Details
-
type
Description copied from interface:BridgeMessageReturns the string discriminator used to route this message during (de)serialization.- Specified by:
typein interfaceBridgeMessage- Returns:
- the message type identifier
-
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. -
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. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
uuid
Returns the value of theuuidrecord component.- Returns:
- the value of the
uuidrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
targetServer
Returns the value of thetargetServerrecord component.- Returns:
- the value of the
targetServerrecord component
-
targetWorld
Returns the value of thetargetWorldrecord component.- Returns:
- the value of the
targetWorldrecord component
-