RuneHive-Game
Loading...
Searching...
No Matches
PacketListener.java
Go to the documentation of this file.
1package com.runehive.net.packet;
2
3import com.runehive.game.world.entity.mob.player.Player;
4
5/**
6 * The itemcontainer that allows any implementing {@Packet}s. The ability to be
7 * intercepted as an in {@code Packet}.
8 *
9 * @author SeVen
10 */
11public interface PacketListener {
12
13 /**
14 * Handles the packet that has just been received.
15 *
16 * @param player
17 * The player receiving this packet.
18 *
19 * @param packet
20 * The packet that has been received.
21 */
23}
This class represents a character controlled by a player.
Definition Player.java:125
Represents a single game packet.
void handlePacket(Player player, GamePacket packet)
Handles the packet that has just been received.