RuneHive-Game
Loading...
Searching...
No Matches
SendPoison.java
Go to the documentation of this file.
1package com.runehive.net.packet.out;
2
3import com.runehive.game.world.entity.mob.player.Player;
4import com.runehive.net.codec.ByteModification;
5import com.runehive.net.packet.OutgoingPacket;
6
7public class SendPoison extends OutgoingPacket {
8
14
15 private final PoisonType type;
16
18 super(182, 1);
19 this.type = type;
20 }
21
22 @Override
23 public boolean encode(Player player) {
24 builder.writeByte(type.ordinal(), ByteModification.NEG);
25 return true;
26 }
27
28}
This class represents a character controlled by a player.
Definition Player.java:125
OutgoingPacket(int opcode, int capacity)
Represents RuneScape's custom value types.