Package io.github.joealisson.mmocore
Interface PacketHandler<T extends Client<Connection<T>>>
-
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface PacketHandler<T extends Client<Connection<T>>>This class is responsible to handler the incoming data. Converting it to a packet.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReadablePacket<T>handlePacket(PacketBuffer buffer, T client)Convert the data into a packet.
-
-
-
Method Detail
-
handlePacket
ReadablePacket<T> handlePacket(PacketBuffer buffer, T client)
Convert the data into a packet.- Parameters:
buffer- - the buffer with data to be converted.client- - the client who sends the data- Returns:
- A Packet related to the data received.
-
-