Class OnAddIncomingEvent

java.lang.Object
com.avrix.events.Event
com.avrix.events.OnAddIncomingEvent

public abstract class OnAddIncomingEvent extends Event
Triggered when a packet from a client arrives at the server.
  • Constructor Details

    • OnAddIncomingEvent

      public OnAddIncomingEvent()
  • Method Details

    • getEventName

      public String getEventName()
      Getting the event name
      Specified by:
      getEventName in class Event
      Returns:
      name of the event being implemented
    • handleEvent

      public abstract void handleEvent(Short opcode, ByteBuffer data, zombie.core.raknet.UdpConnection playerConnection)
      Called Event Handling Method
      Parameters:
      opcode - an opcode that specifies the type of event
      data - data associated with a packet, represented as a ByteBuffer
      playerConnection - player connection associated with packet