Package com.btcvelocity.api.bridge
Record Class BridgeMessage.WorldPreload
java.lang.Object
java.lang.Record
com.btcvelocity.api.bridge.BridgeMessage.WorldPreload
- Record Components:
serverName- the name of the destination serverworldName- the world to preload, ornullif the default world should be used
- All Implemented Interfaces:
BridgeMessage
- Enclosing interface:
BridgeMessage
public static record BridgeMessage.WorldPreload(String serverName, @Nullable String worldName)
extends Record
implements BridgeMessage
Proxy -> Backend: a player is about to be transferred, preload the given world.
-
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
ConstructorsConstructorDescriptionWorldPreload(String serverName, @Nullable String worldName) Creates an instance of aWorldPreloadrecord class. -
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 theserverNamerecord component.final StringtoString()Returns a string representation of this record class.type()Returns the string discriminator used to route this message during (de)serialization.@Nullable StringReturns the value of theworldNamerecord component.
-
Constructor Details
-
WorldPreload
Creates an instance of aWorldPreloadrecord class.- Parameters:
serverName- the value for theserverNamerecord componentworldName- the value for theworldNamerecord 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). -
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
worldName
Returns the value of theworldNamerecord component.- Returns:
- the value of the
worldNamerecord component
-