RuneHive-Game
Loading...
Searching...
No Matches
SendSpecialAmount.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 * Handles sending the special attack amount (used for the orb).
8 *
9 * @author Daniel
10 */
11public final class SendSpecialAmount extends OutgoingPacket {
12
14 super(137, 1);
15 }
16
17 @Override
18 public boolean encode(Player player) {
19 builder.writeByte(player.getSpecialPercentage().get());
20 return true;
21 }
22
23}
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)
int get()
Gets the value present within this counter.