1package com.runehive.net.packet.in;
3import com.runehive.game.world.entity.mob.player.Player;
4import com.runehive.net.packet.ClientPackets;
5import com.runehive.net.packet.GamePacket;
6import com.runehive.net.packet.PacketListener;
7import com.runehive.net.packet.PacketListenerMeta;
8import org.jire.runehiveps.event.widget.DropViewerEvent;
15 final String context =
packet.getRS2String();
16 if (context ==
null || context.isEmpty() || context.equalsIgnoreCase(
"null")) {
20 player.
getEvents().widget(player,
new DropViewerEvent(context));
This class represents a character controlled by a player.
Client -> Server packet opcodes.
static final int NPC_DROP_VIEWER
Represents a single game packet.
void handlePacket(Player player, GamePacket packet)
Handles the packet that has just been received.