RuneHive-Game
Loading...
Searching...
No Matches
SendInterface.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
6/**
7 * The {@code OutgoingPacket} that opens an itemcontainer for {@code Player}.
8 *
9 * @author Daniel | Obey
10 */
11public class SendInterface extends OutgoingPacket {
12
13 private final int interfaceId;
14
16 super(97, 4);
17 this.interfaceId = interfaceId;
18 }
19
20 @Override
21 public boolean encode(Player player) {
22 builder.writeInt(interfaceId);
23 return true;
24 }
25}
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)