RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendHintArrow.java
1package com.osroyale.net.packet.out;
2
3import com.osroyale.game.world.entity.mob.Mob;
4import com.osroyale.game.world.entity.mob.player.Player;
5import com.osroyale.game.world.position.Position;
6import com.osroyale.net.packet.OutgoingPacket;
7
30
31public class SendHintArrow extends OutgoingPacket {
32
33 private final Position position;
34 private final int type;
35
36 public SendHintArrow(int type) {
37 super(254, 6);
38 this.position = new Position(0, 0, 0);
39 this.type = type;
40 }
41
42 public SendHintArrow(Position position) {
43 super(254, 6);
44 this.position = position;
45 this.type = 2;
46 }
47
48 public SendHintArrow(Position position, int type) {
49 super(254, 6);
50 this.position = position;
51 this.type = type;
52 }
53
54 @Override
55 protected boolean encode(Player player) {
56 builder.writeByte(type)
57 .writeShort(position.getX())
58 .writeShort(position.getY())
59 .writeByte(position.getHeight());
60
61 return true;
62 }
63}