RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendNpcHead.java
1
package
com.osroyale.net.packet.out;
2
3
import
com.osroyale.net.codec.ByteOrder;
4
import
com.osroyale.net.codec.ByteModification;
5
import
com.osroyale.game.world.entity.mob.player.Player;
6
import
com.osroyale.net.packet.OutgoingPacket;
7
28
29
public
class
SendNpcHead
extends
OutgoingPacket {
30
31
private
final
int
npcId;
32
private
final
int
interfaceId;
33
34
public
SendNpcHead(
int
npcId,
int
interfaceId) {
35
super(75, 4);
36
this.npcId = npcId;
37
this.interfaceId = interfaceId;
38
}
39
40
@Override
41
public
boolean
encode(
Player
player) {
42
builder.writeShort(npcId,
ByteModification
.
ADD
,
ByteOrder
.
LE
)
43
.writeShort(interfaceId,
ByteModification
.
ADD
,
ByteOrder
.
LE
);
44
return
true
;
45
}
46
47
}
com.osroyale.game.world.entity.mob.player.Player
Definition
Player.java:162
com.osroyale.net.codec.ByteModification
Definition
ByteModification.java:33
com.osroyale.net.codec.ByteModification.ADD
ADD
Definition
ByteModification.java:43
com.osroyale.net.codec.ByteOrder
Definition
ByteOrder.java:33
com.osroyale.net.codec.ByteOrder.LE
LE
Definition
ByteOrder.java:38