mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
Regenerate and refresh chunk methods
By: Raphfrk <raphfrk@gmail.com>
This commit is contained in:
parent
0ebd910f1b
commit
2c403adf74
1 changed files with 18 additions and 0 deletions
|
@ -200,6 +200,24 @@ public interface World {
|
|||
*/
|
||||
public boolean unloadChunkRequest(int x, int z, boolean safe);
|
||||
|
||||
/**
|
||||
* Regenerates the {@link Chunk} at the specified coordinates
|
||||
*
|
||||
* @param x X-coordinate of the chunk
|
||||
* @param z Z-coordinate of the chunk
|
||||
* @return Whether the chunk was actually regenerated
|
||||
*/
|
||||
public boolean regenerateChunk(int x, int z);
|
||||
|
||||
/**
|
||||
* Resends the {@link Chunk} to all clients
|
||||
*
|
||||
* @param x X-coordinate of the chunk
|
||||
* @param z Z-coordinate of the chunk
|
||||
* @return Whether the chunk was actually refreshed
|
||||
*/
|
||||
public boolean refreshChunk(int x, int z);
|
||||
|
||||
/**
|
||||
* Drops an item at the specified {@link Location}
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue