1package com.runehive.game.task.impl;
3import com.runehive.game.task.Task;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.net.packet.out.SendMessage;
17 if (
player.getPoisonImmunity().get() <= 0)
23 if (
player.getPoisonImmunity().get() <= 0)
30 player.getPoisonImmunity().set(0);
synchronized final void cancel()
Cancels all subsequent executions.
Task(boolean instant, int delay)
Creates a new Task.
void execute()
A function representing the unit of work that will be carried out.
void onCancel(boolean logout)
A function executed on cancellation.
SuperAntipoisonTask(Player player)
This class represents a character controlled by a player.
final MutableNumber getPoisonImmunity()
The OutgoingPacket that sends a message to a Players chatbox in the client.
int decrementAndGet(int amount, int minimum)
Decrements the value within this counter by amount to a minimum of minimum and then returns it.