Class FloodgateDataHandler
java.lang.Object
org.geysermc.floodgate.core.connection.FloodgateDataHandler
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic enumstatic final record -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondecodeDataToConnection(@NonNull String floodgateData) Decode the given Floodgate data into a FloodgateConnection.handleConnection(FloodgateConnection connection)
-
Constructor Details
-
FloodgateDataHandler
public FloodgateDataHandler()
-
-
Method Details
-
decodeDataToConnection
Decode the given Floodgate data into a FloodgateConnection. ThrowsInvalidFormatExceptionwhen the Floodgate format couldn't be found. ThrowsUnsupportedVersionExceptionwhen the given format version isn't supported. OtherException(s) are caused by invalid/tempered Floodgate data.- Parameters:
floodgateData- the data to decode- Returns:
- the Floodgate Connection if decoded successfully
-
handleConnection
public CompletableFuture<FloodgateDataHandler.JoinResult> handleConnection(FloodgateConnection connection)
-