1package com.runehive.game.world.items.ground;
3import com.runehive.game.task.Task;
4import com.runehive.game.world.World;
5import com.runehive.game.world.entity.mob.player.Player;
6import com.runehive.game.world.region.Region;
7import com.runehive.net.packet.out.SendGroundItem;
16 private static final int MINUTE = 100;
67 if (
groundItem.player.usernameLong != player.usernameLong)
synchronized final void cancel()
Cancels all subsequent executions.
Task(boolean instant, int delay)
Creates a new Task.
Represents the game world.
static RegionManager getRegions()
This class represents a character controlled by a player.
static final int MINUTE
A variable which indicates how many ticks a minute is.
void execute()
A function representing the unit of work that will be carried out.
final GroundItem groundItem
The ground item this randomevent is running for.
int minutes
The counter of this task.
GroundItemEvent(GroundItem groundItem)
Creates a new Task that doesn't execute instantly.
void onCancel(boolean logout)
A function executed on cancellation.
Represents a single Ground item on the world map.
Represents a single region.
Region[] getSurroundingRegions(Position position)
Gets the regions surrounding a position.