RuneHive-Game
Loading...
Searching...
No Matches
SendPlayerDisplay.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 * Send other player index on itemcontainer
8 * @author Daniel
9 *
10 */
11public class SendPlayerDisplay extends OutgoingPacket {
12
13 private final int id;
14
15 public SendPlayerDisplay(int id) {
16 super(201, 4);
17 this.id = id;
18 }
19
20 @Override
21 public boolean encode(Player player) {
22 builder.writeInt(id);
23 return true;
24 }
25
26}
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)