RuneHive-Game
Loading...
Searching...
No Matches
SendRunEnergy.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 final class SendRunEnergy extends OutgoingPacket {
7
8 public SendRunEnergy() {
9 super(110, 1);
10 }
11
12 @Override
13 public boolean encode(Player player) {
14 builder.writeByte(player.runEnergy);
15 return true;
16 }
17
18}
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)