Class SessionDisconnectEvent
java.lang.Object
org.geysermc.geyser.event.GeyserEvent
org.geysermc.geyser.event.events.network.SessionDisconnectEvent
- All Implemented Interfaces:
EventSession
Triggered when a session is disconnected
-
Constructor Summary
ConstructorsConstructorDescriptionSessionDisconnectEvent(@NonNull GeyserSession session, @NonNull com.nukkitx.network.util.DisconnectReason disconnectReason) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanboolean@NonNull com.nukkitx.network.util.DisconnectReasonThe reason for the disconnection@NonNull GeyserSessionReturn theGeyserSessionfor this EventinthashCode()toString()
-
Constructor Details
-
SessionDisconnectEvent
public SessionDisconnectEvent(@NonNull @NonNull GeyserSession session, @NonNull @NonNull com.nukkitx.network.util.DisconnectReason disconnectReason)
-
-
Method Details
-
getSession
Description copied from interface:EventSessionReturn theGeyserSessionfor this Event- Specified by:
getSessionin interfaceEventSession- Returns:
- the current session
-
getDisconnectReason
@NonNull public @NonNull com.nukkitx.network.util.DisconnectReason getDisconnectReason()The reason for the disconnection- Returns:
- the reason
-
toString
- Overrides:
toStringin classGeyserEvent
-
equals
- Overrides:
equalsin classGeyserEvent
-
canEqual
- Overrides:
canEqualin classGeyserEvent
-
hashCode
public int hashCode()- Overrides:
hashCodein classGeyserEvent
-