RuneHive-Game
Loading...
Searching...
No Matches
SendInterfaceVisibility.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.packet.OutgoingPacket;
5
7 private final int interfaceId;
8 private final boolean isHidden;
9
11 super(5, 5);
12 this.interfaceId = interfaceId;
13 this.isHidden = isHidden;
14 }
15
16 @Override
17 protected boolean encode(Player player) {
18 builder.writeInt(interfaceId)
19 .writeByte(isHidden ? 1 : 0);
20 return true;
21 }
22}
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)