|
RuneHive-Game
|
Public Member Functions | |
| void | execute () |
| A function representing the unit of work that will be carried out. | |
| PlayerSaveEvent () | |
| Public Member Functions inherited from com.runehive.game.task.Task | |
| Task | attach (Object newKey) |
| Attaches a new key. | |
| synchronized final void | cancel () |
| Cancels all subsequent executions. | |
| synchronized final void | cancel (boolean logout) |
| Cancels all subsequent executions. | |
| boolean | canRun () |
| Determines if the task can be ran. | |
| Optional< Object > | getAttachment () |
| String | getCreationStackTraceStr () |
| int | getDelay () |
| Long | getElapsedTimeFromRunStartTime () |
| Optional< Long > | getRunStartTime () |
| long | getTaskCreationTime () |
| String | getTaskId () |
| boolean | isInstant () |
| boolean | isRunning () |
| void | setDelay (int delay) |
| Sets the cyclic delay. | |
| void | setExecutionTime () |
| Task (boolean instant, int delay) | |
Creates a new Task. | |
| Task (int delay) | |
Creates a new Task that doesn't execute instantly. | |
Static Private Attributes | |
| static final Logger | logger = LogManager.getLogger(PlayerSaveEvent.class) |
Additional Inherited Members | |
| Protected Member Functions inherited from com.runehive.game.task.Task | |
| void | baseExecute () |
| boolean | canSchedule () |
| A function executed on registration. | |
| void | onCancel (boolean logout) |
| A function executed on cancellation. | |
| void | onSchedule () |
| A function executed on registration. | |
| Package Functions inherited from com.runehive.game.task.Task | |
| void | onException (Exception e) |
| A function executed on thrown exceptions. | |
| void | onLoop () |
| A function executed when iterated over. | |
| final synchronized void | process () |
| synchronized void | setRunning (boolean running) |
Definition at line 11 of file PlayerSaveEvent.java.
| com.runehive.game.task.impl.PlayerSaveEvent.PlayerSaveEvent | ( | ) |
Definition at line 14 of file PlayerSaveEvent.java.
| void com.runehive.game.task.impl.PlayerSaveEvent.execute | ( | ) |
A function representing the unit of work that will be carried out.
Reimplemented from com.runehive.game.task.Task.
Definition at line 19 of file PlayerSaveEvent.java.
References com.runehive.game.world.World.getPlayers(), logger, com.runehive.game.world.entity.mob.player.persist.PlayerSerializer.save(), com.runehive.content.clanchannel.ClanRepository.saveAllActiveClans(), and com.runehive.game.world.World.update.
|
staticprivate |
Definition at line 12 of file PlayerSaveEvent.java.
Referenced by execute().