RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendMinimapState.java
1package com.osroyale.net.packet.out;
2
3import com.osroyale.game.world.entity.mob.player.Player;
4import com.osroyale.net.packet.OutgoingPacket;
5
34
35public class SendMinimapState extends OutgoingPacket {
36
37 private final MinimapState state;
38
39 public SendMinimapState(MinimapState state) {
40 super(99, 1);
41 this.state = state;
42 }
43
44 @Override
45 public boolean encode(Player player) {
46 builder.writeByte(state.getCode());
47 return true;
48 }
49
55public enum MinimapState {
60
65
70
71 private final int code;
72
73 MinimapState(int code) {
74 this.code = code;
75 }
76
77 public int getCode() {
78 return code;
79 }
80 }
81
82}