Add API to get/set inhabited time of a Chunk

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2019-09-07 16:48:23 +10:00
parent a95818dc6a
commit 999db397ec

View File

@ -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);
}