RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendTooltip.java
1
package
com.osroyale.net.packet.out;
2
3
import
com.osroyale.game.world.entity.mob.player.Player;
4
import
com.osroyale.net.codec.ByteModification;
5
import
com.osroyale.net.packet.OutgoingPacket;
6
import
com.osroyale.net.packet.PacketType;
7
29
30
public
class
SendTooltip
extends
OutgoingPacket {
31
32
private
final
String string;
33
private
final
int
id;
34
35
public
SendTooltip(
int
id
, String
string
) {
36
super(203,
PacketType
.
VAR_SHORT
);
37
this.string = string;
38
this.id = id;
39
}
40
41
42
public
SendTooltip(String
string
,
int
id
) {
43
this
(id, string);
44
}
45
46
@Override
47
public
boolean
encode(
Player
player) {
48
builder.writeString(
string
)
49
.writeShort(
id
,
ByteModification
.
ADD
);
50
return
true
;
51
}
52
53
}
com.osroyale.game.world.entity.mob.player.Player
Definition
Player.java:162
com.osroyale.net.codec.ByteModification
Definition
ByteModification.java:33
com.osroyale.net.codec.ByteModification.ADD
ADD
Definition
ByteModification.java:43
com.osroyale.net.packet.PacketType
Definition
PacketType.java:32
com.osroyale.net.packet.PacketType.VAR_SHORT
VAR_SHORT
Definition
PacketType.java:49