RuneHive-Game
Loading...
Searching...
No Matches
SendNpcDisplay.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
6public class SendNpcDisplay extends OutgoingPacket {
7
8 private final int npc;
9 private final int size;
10
11 public SendNpcDisplay(int npc, int size) {
12 super(198, 0);
13 this.npc = npc;
14 this.size = size;
15 }
16
17 @Override
18 public boolean encode(Player player) {
19 return false;
20 //Changes size of npc on client. gotta redo
21// builder.writeInt(npc).writeInt(size);
22// player.channel.ifPresent(s -> s.submit(builder));
23 }
24
25}
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)