RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendPlayerDialogueHead.java
1
package
com.osroyale.net.packet.out;
2
3
import
com.osroyale.net.codec.ByteModification;
4
import
com.osroyale.net.codec.ByteOrder;
5
import
com.osroyale.game.world.entity.mob.player.Player;
6
import
com.osroyale.net.packet.OutgoingPacket;
7
26
27
public
class
SendPlayerDialogueHead
extends
OutgoingPacket {
28
29
private
final
int
interfaceId;
30
31
public
SendPlayerDialogueHead(
int
interfaceId) {
32
super(185, 2);
33
this.interfaceId = interfaceId;
34
}
35
36
@Override
37
public
boolean
encode(
Player
player) {
38
builder.writeShort(interfaceId,
ByteModification
.
ADD
,
ByteOrder
.
LE
);
39
return
true
;
40
}
41
42
}
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