RuneHive-Game
Loading...
Searching...
No Matches
SendScreenshot.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 * @author Daniel | Obey
8 */
9public class SendScreenshot extends OutgoingPacket {
10 private final int state;
11
12 public SendScreenshot(int state) {
13 super(111, 2);
14 this.state = state;
15 }
16
17 public SendScreenshot() {
18 this(0);
19 }
20
21 @Override
22 public boolean encode(Player player) {
23 builder.writeShort(state);
24 return true;
25 }
26}
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)