RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendPoison.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
27
28
public
class
SendPoison
extends
OutgoingPacket {
29
30
public
enum
PoisonType {
31
NO_POISON,
32
REGULAR,
33
VENOM
34
}
35
36
private
final
PoisonType type;
37
38
public
SendPoison(PoisonType type) {
39
super(182, 1);
40
this.type = type;
41
}
42
43
@Override
44
public
boolean
encode(
Player
player) {
45
builder.writeByte(type.ordinal(),
ByteModification
.
NEG
);
46
return
true
;
47
}
48
49
}
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.NEG
NEG
Definition
ByteModification.java:48