geforkt von Mirrors/Paper
Add API to get/set inhabited time of a Chunk
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
a95818dc6a
Commit
999db397ec
@ -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);
|
||||
}
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren