RuneHive-Game
Loading...
Searching...
No Matches
SendNpcHead.java
Go to the documentation of this file.
1package com.runehive.net.packet.out;
2
3import com.runehive.net.codec.ByteOrder;
4import com.runehive.net.codec.ByteModification;
5import com.runehive.game.world.entity.mob.player.Player;
6import com.runehive.net.packet.OutgoingPacket;
7
8public class SendNpcHead extends OutgoingPacket {
9
10 private final int npcId;
11 private final int interfaceId;
12
13 public SendNpcHead(int npcId, int interfaceId) {
14 super(75, 4);
15 this.npcId = npcId;
16 this.interfaceId = interfaceId;
17 }
18
19 @Override
20 public boolean encode(Player player) {
23 return true;
24 }
25
26}
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)
SendNpcHead(int npcId, int interfaceId)
Represents RuneScape's custom value types.
ADD
Adds 128 to the value when written, subtracts 128 from the rarity when read.
Represents the order in which bytes are written.
Definition ByteOrder.java:8
LE
Represents Little-endian.