Package com.avrix.events
Class OnAddIncomingEvent
java.lang.Object
com.avrix.events.Event
com.avrix.events.OnAddIncomingEvent
Triggered when a packet from a client arrives at the server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGetting the event nameabstract voidhandleEvent(Short opcode, ByteBuffer data, zombie.core.raknet.UdpConnection playerConnection) Called Event Handling Method
-
Constructor Details
-
OnAddIncomingEvent
public OnAddIncomingEvent()
-
-
Method Details
-
getEventName
Getting the event name- Specified by:
getEventNamein classEvent- 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 eventdata- data associated with a packet, represented as a ByteBufferplayerConnection- player connection associated with packet
-