RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendRemoveInterface.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 SendRemoveInterface extends OutgoingPacket {
27
28 private final boolean close;
29
30 public SendRemoveInterface(boolean close) {
31 super(219, 1);
32 this.close = close;
33 }
34
35 public SendRemoveInterface() {
36 this(true);
37 }
38
39 @Override
40 public boolean encode(Player player) {
41 byte val = (byte) (close ? 1 : 0);
42 builder.writeByte(val);
43 return true;
44 }
45
46}