mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-31 22:22:49 +00:00
Add API to get/set inhabited time of a Chunk
This commit is contained in:
parent
e3c812dd0c
commit
b2adbb451f
1 changed files with 16 additions and 0 deletions
|
@ -198,4 +198,20 @@ public interface Chunk {
|
|||
*/
|
||||
@NotNull
|
||||
Collection<Plugin> getPluginChunkTickets();
|
||||
|
||||
/**
|
||||
* Gets the amount of time in ticks that this chunk has been inhabited.
|
||||
*
|
||||
* Note that the time is incremented once per tick per player in the chunk.
|
||||
*
|
||||
* @return inhabited time
|
||||
*/
|
||||
long getInhabitedTime();
|
||||
|
||||
/**
|
||||
* Sets the amount of time in ticks that this chunk has been inhabited.
|
||||
*
|
||||
* @param ticks new inhabited time
|
||||
*/
|
||||
void setInhabitedTime(long ticks);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue