Mirror von
https://github.com/PaperMC/Paper.git
synchronisiert 2024-12-23 23:00:08 +01:00
Add API to get/set inhabited time of a Chunk
Dieser Commit ist enthalten in:
Ursprung
b79a86edeb
Commit
023f438cca
@ -199,6 +199,18 @@ public class CraftChunk implements Chunk {
|
||||
return getWorld().getPluginChunkTickets(getX(), getZ());
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getInhabitedTime() {
|
||||
return getHandle().q();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setInhabitedTime(long ticks) {
|
||||
Preconditions.checkArgument(ticks >= 0, "ticks cannot be negative");
|
||||
|
||||
getHandle().b(ticks);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ChunkSnapshot getChunkSnapshot() {
|
||||
return getChunkSnapshot(true, false, false);
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren