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