1package com.runehive.game.task.impl;
3import com.runehive.game.task.Task;
4import com.runehive.game.world.object.CustomGameObject;
34 if (!
object.isRegistered())
47 if (
object.isRegistered()) {
synchronized final void cancel()
Cancels all subsequent executions.
Task(boolean instant, int delay)
Creates a new Task.
int delay
The cyclic delay.
final Runnable onDestination
The runnable.
void execute()
A function representing the unit of work that will be carried out.
ObjectPlacementEvent(CustomGameObject object, int delay, Runnable onDestination)
Constructs a new ObjectReplacementEvent.
ObjectPlacementEvent(CustomGameObject object, int delay)
Constructs a new ObjectReplacementEvent.
void onSchedule()
A function executed on registration.
final CustomGameObject object
The custom game object.
void onCancel(boolean logout)
A function executed on cancellation.
Represents a static game object loaded from the map fs.