1package com.runehive.net.packet.in;
3import com.runehive.game.world.entity.mob.data.PacketType;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.net.packet.GamePacket;
6import com.runehive.net.packet.PacketListener;
7import com.runehive.net.packet.PacketListenerMeta;
8import org.jire.runehiveps.event.widget.KeyPacketEvent;
20 final int key =
packet.readShort();
27 player.
getEvents().widget(player,
new KeyPacketEvent(key));
boolean locked()
Checks if the mob is locked.
This class represents a character controlled by a player.
Represents a single game packet.
The GamePacket responsible for clicking keyboard buttons.
void handlePacket(Player player, GamePacket packet)
Handles the packet that has just been received.