RuneHive-Game
Loading...
Searching...
No Matches
SendInterfaceAnimation.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
8 private final int interfaceId;
9 private final int animationId;
10
12 super(200, 4);
13 this.interfaceId = interfaceId;
14 this.animationId = animationId;
15 }
16
17 @Override
18 public boolean encode(Player player) {
19 builder.writeShort(interfaceId)
20 .writeShort(animationId);
21 return true;
22 }
23
24}
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)