RuneHive-Game
Loading...
Searching...
No Matches
SendInterfaceWidget.java
Go to the documentation of this file.
1package com.runehive.net.packet.out;
2
3import com.runehive.game.world.entity.mob.player.Player;
4import com.runehive.net.codec.ByteModification;
5import com.runehive.net.codec.ByteOrder;
6import com.runehive.net.packet.OutgoingPacket;
7import com.runehive.net.packet.PacketType;
8import com.runehive.util.MessageColor;
9
10public class SendInterfaceWidget extends OutgoingPacket {
11
12 private final int interfaceID;
13 private final int modelID;
14
16 super(8, PacketType.EMPTY);
17 this.interfaceID = interfaceID;
18 this.modelID = modelID;
19 }
20
21 @Override
22 public boolean encode(Player player) {
24 builder.writeShort(modelID);
25 return true;
26 }
27}
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)
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.
Represents a type of packet.