RuneHive-Tarnish
Neural OSRS Enhancement Framework
Loading...
Searching...
No Matches
SendPoison.java
1package com.osroyale.net.packet.out;
2
3import com.osroyale.game.world.entity.mob.player.Player;
4import com.osroyale.net.codec.ByteModification;
5import com.osroyale.net.packet.OutgoingPacket;
6
27
28public class SendPoison extends OutgoingPacket {
29
30public 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}