RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendNpcHead.java
1package com.osroyale.net.packet.out;
2
3import com.osroyale.net.codec.ByteOrder;
4import com.osroyale.net.codec.ByteModification;
5import com.osroyale.game.world.entity.mob.player.Player;
6import com.osroyale.net.packet.OutgoingPacket;
7
28
29public 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}