RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendInterfaceVisibility.java
1package com.osroyale.net.packet.out;
2
3import com.osroyale.game.world.entity.mob.player.Player;
4import com.osroyale.net.packet.OutgoingPacket;
5
25
26public class SendInterfaceVisibility extends OutgoingPacket {
27 private final int interfaceId;
28 private final boolean isHidden;
29
30 public SendInterfaceVisibility(int interfaceId, boolean isHidden) {
31 super(5, 5);
32 this.interfaceId = interfaceId;
33 this.isHidden = isHidden;
34 }
35
36 @Override
37 protected boolean encode(Player player) {
38 builder.writeInt(interfaceId)
39 .writeByte(isHidden ? 1 : 0);
40 return true;
41 }
42}