Class SessionDisconnectEventImpl

java.lang.Object
org.geysermc.geyser.api.event.connection.ConnectionEvent
org.geysermc.geyser.api.event.bedrock.SessionDisconnectEvent
org.geysermc.geyser.event.type.SessionDisconnectEventImpl
All Implemented Interfaces:
org.geysermc.event.Event

public class SessionDisconnectEventImpl extends org.geysermc.geyser.api.event.bedrock.SessionDisconnectEvent
A wrapper around the SessionDisconnectEvent that allows Geyser to access the underlying component when replacing disconnect messages.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SessionDisconnectEventImpl(@NonNull GeyserSession session, net.kyori.adventure.text.Component reason)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.kyori.adventure.text.Component
     

    Methods inherited from class org.geysermc.geyser.api.event.bedrock.SessionDisconnectEvent

    disconnectReason, disconnectReason

    Methods inherited from class org.geysermc.geyser.api.event.connection.ConnectionEvent

    connection

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SessionDisconnectEventImpl

      public SessionDisconnectEventImpl(@NonNull GeyserSession session, net.kyori.adventure.text.Component reason)
  • Method Details

    • getReasonComponent

      public net.kyori.adventure.text.Component getReasonComponent()