Class SubNetworkDisconnectEvent

java.lang.Object
org.spongepowered.api.event.impl.AbstractEvent
net.ME1312.SubServers.Client.Sponge.Event.SubNetworkDisconnectEvent
All Implemented Interfaces:
SubEvent, Event

public class SubNetworkDisconnectEvent extends AbstractEvent implements SubEvent
SubData Network Disconnect Event
  • Constructor Details

    • SubNetworkDisconnectEvent

      public SubNetworkDisconnectEvent(DataClient network, DisconnectReason reason)
      SubData Network Disconnect Event
  • Method Details

    • getNetwork

      public DataClient getNetwork()
      Get the SubData network
      Returns:
      SubData Network
    • getReason

      public DisconnectReason getReason()
      Get the reason the client disconnected
      Returns:
      Disconnect Reason
    • getCause

      @Deprecated public Cause getCause()
      Deprecated.
      Use simplified methods where available
      Gets the cause of this Event
      Specified by:
      getCause in interface Event
      Returns:
      Disconnect Reason