mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 00:07:56 +01:00
Add API to get/set inhabited time of a Chunk
By: md_5 <git@md-5.net>
This commit is contained in:
parent
a95818dc6a
commit
999db397ec
@ -198,4 +198,20 @@ public interface Chunk {
|
|||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
Collection<Plugin> getPluginChunkTickets();
|
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…
Reference in New Issue
Block a user