Package net.ME1312.SubData.Server
Class DataClient.Events
java.lang.Object
net.ME1312.SubData.Server.DataClient.Events
- Enclosing class:
- DataClient
SubData Client Event API Class
-
Method Summary
Modifier and TypeMethodDescriptionfinal void
close
(Function<DataClient, Boolean>... callbacks) On Connection Close Eventfinal void
closed
(Consumer<Pair<DisconnectReason, DataClient>>... callbacks) On Connection Closed Eventfinal void
ready
(Consumer<DataClient>... callbacks) On Connection Ready Event
-
Method Details
-
ready
On Connection Ready Event- Parameters:
callbacks
- Callback
-
close
On Connection Close Event- Parameters:
callbacks
- Callback
-
closed
On Connection Closed Event- Parameters:
callbacks
- Callback
-