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