1package com.runehive.game.task.impl;
3import com.runehive.game.task.Task;
4import com.runehive.game.world.object.GameObject;
30 this.replacement = -1;
31 this.onEndRun = () -> {
40 this.onEndRun = () -> {
synchronized final void cancel()
Cancels all subsequent executions.
Task(boolean instant, int delay)
Creates a new Task.
int delay
The cyclic delay.
final Runnable onEndRun
The on event end runnable.
ObjectReplacementEvent(GameObject original, int replacement, int delay)
void execute()
A function representing the unit of work that will be carried out.
ObjectReplacementEvent(GameObject original, int delay)
final GameObject original
The original game object.
final int replacement
The replacement game object.
void onSchedule()
A function executed on registration.
void onCancel(boolean logout)
A function executed on cancellation.
final int originalId
The replacement game object.
ObjectReplacementEvent(GameObject original, int replacement, int delay, Runnable onEndRun)
Represents a game object.