Package com.btcvelocity.api.bridge
Record Class BridgeMessage.PartyWarp
java.lang.Object
java.lang.Record
com.btcvelocity.api.bridge.BridgeMessage.PartyWarp
- Record Components:
members- the unique ids of the players to movetargetServer- the name of the destination server
- All Implemented Interfaces:
BridgeMessage
- Enclosing interface:
BridgeMessage
public static record BridgeMessage.PartyWarp(List<UUID> members, String targetServer)
extends Record
implements BridgeMessage
Backend -> Proxy: move a group of players (for example a whole party) to a
destination server in a single request. Members may be spread across several
backends; the proxy moves each one it can resolve.
-
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.members()Returns the value of themembersrecord component.Returns the value of thetargetServerrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the string discriminator used to route this message during (de)serialization.
-
Constructor Details
-
PartyWarp
Creates an instance of aPartyWarprecord class.- Parameters:
members- the value for themembersrecord componenttargetServer- the value for thetargetServerrecord 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). -
members
Returns the value of themembersrecord component.- Returns:
- the value of the
membersrecord component
-
targetServer
Returns the value of thetargetServerrecord component.- Returns:
- the value of the
targetServerrecord component
-