RuneHive-Game
Loading...
Searching...
No Matches
SendInventoryInterface.java
Go to the documentation of this file.
1package com.runehive.net.packet.out;
2
3import com.runehive.net.codec.ByteModification;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.net.packet.OutgoingPacket;
6
7/**
8 * The {@code OutgoingPacket} that opens the inventory with itemcontainer.
9 *
10 * @author Daniel | Obey
11 */
13
14 private final int open;
15 private final int overlay;
16
18 super(248, 6);
19 this.open = open;
20 this.overlay = overlay;
21 }
22
23 @Override
24 public boolean encode(Player player) {
25 builder.writeInt(open)
26 .writeShort(overlay);
27 return true;
28 }
29
30}
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)