RuneHive-Game
Loading...
Searching...
No Matches
DialoguePacketListener.java
Go to the documentation of this file.
1package com.runehive.net.packet.in;
2
3import com.runehive.game.world.entity.mob.player.Player;
4import com.runehive.net.packet.GamePacket;
5import com.runehive.net.packet.PacketListener;
6import com.runehive.net.packet.PacketListenerMeta;
7import org.jire.runehiveps.event.widget.DialogueEvent;
8
9/**
10 * The {@link GamePacket} responsible for dialogues.
11 *
12 * @author Daniel | Obey
13 */
15public class DialoguePacketListener implements PacketListener {
16
17 @Override
18 public void handlePacket(Player player, GamePacket packet) {
19 player.getEvents().widget(player, DialogueEvent.INSTANCE);
20 }
21
22}
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.
An annotation that describes what client -> server packets a PacketListener can listen to.