1package com.runehive.net.packet.out;
3import com.runehive.game.world.entity.mob.Mob;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.net.packet.OutgoingPacket;
6import com.runehive.net.packet.PacketType;
15 private static final int OPCODE = 175;
32 final int hp,
final int maxHp) {
final boolean isPlayer()
Check if an entity is a player.
This class represents a character controlled by a player.
final PacketBuilder builder
OutgoingPacket(int opcode, int capacity)
static final int NO_OPPONENT
static final int OPPONENT_OFFSET_NPC
SendEntityFeed(final int hp, final int maxHp)
SendEntityFeed(final int opponentId, final int hp, final int maxHp)
boolean encode(final Player player)
static int getOpponent(final Mob mob)
SendEntityFeed(final Mob mob)
Represents a type of packet.
FIXED
A fixed size packet where the size never changes.