1package com.runehive.game.action.impl;
3import com.runehive.content.skill.impl.hunter.net.impl.Butterfly;
4import com.runehive.content.skill.impl.hunter.net.impl.Impling;
5import com.runehive.game.task.Task;
6import com.runehive.game.world.entity.mob.npc.Npc;
8import java.util.Optional;
28 if (impling.isPresent()) {
30 }
else butterfly.ifPresent(butterfly1 ->
setDelay(butterfly1.delay));
33 npc.setVisible(
false);
void onSchedule()
A function executed on registration.
void execute()
A function representing the unit of work that will be carried out.
HunterRespawnTask(Npc npc)
synchronized final void cancel()
Cancels all subsequent executions.
Task(boolean instant, int delay)
Creates a new Task.
void setDelay(int delay)
Sets the cyclic delay.
Represents a non-player character in the in-game world.
static Optional< Butterfly > forId(int butterfly)
Holds all the impling data.
static Optional< Impling > forId(int impling)