Class LoginConnectionInitEvent

java.lang.Object
net.vitacraft.serverlibraries.api.event.events.networking.LoginConnectionInitEvent
All Implemented Interfaces:
Event

public class LoginConnectionInitEvent extends Object implements Event
Event that is fired when a connection is being initialized.
  • Constructor Details

    • LoginConnectionInitEvent

      public LoginConnectionInitEvent(net.minecraft.server.network.ServerLoginNetworkHandler networkHandler, net.minecraft.server.MinecraftServer server)
  • Method Details

    • getNetworkHandler

      public net.minecraft.server.network.ServerLoginNetworkHandler getNetworkHandler()
      Returns:
      the network handler that is being initialized
    • getServer

      public net.minecraft.server.MinecraftServer getServer()
      Returns:
      the server that is handling the connection
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface Event
    • setCancelled

      public void setCancelled(boolean cancelled)
      Specified by:
      setCancelled in interface Event