1package com.runehive.game.task.impl;
3import com.runehive.game.task.Task;
4import com.runehive.game.world.entity.mob.player.Player;
5import com.runehive.game.world.object.GameObject;
21 if (!
player.getPosition().isWithinDistance(
object.getPosition(), 1)) {
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.
abstract void onExecute()
void onCancel(boolean logout)
A function executed on cancellation.
void onSchedule()
A function executed on registration.
SteppingStoneTask(Player player, GameObject object)
This class represents a character controlled by a player.
Represents a game object.