@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user