mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
SPIGOT-6719: Add getTileEntities() to LimitedRegion
By: DerFrZocker <derrieple@gmail.com>
This commit is contained in:
parent
74e1b5b72a
commit
5f7735a971
1 changed files with 11 additions and 0 deletions
|
@ -1,7 +1,9 @@
|
|||
package org.bukkit.generator;
|
||||
|
||||
import java.util.List;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.RegionAccessor;
|
||||
import org.bukkit.block.BlockState;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
/**
|
||||
|
@ -42,4 +44,13 @@ public interface LimitedRegion extends RegionAccessor {
|
|||
* @return true if the coordinates are in the region, otherwise false.
|
||||
*/
|
||||
boolean isInRegion(int x, int y, int z);
|
||||
|
||||
/**
|
||||
* Gets a list of all tile entities in the limited region including the
|
||||
* buffer zone.
|
||||
*
|
||||
* @return a list of tile entities.
|
||||
*/
|
||||
@NotNull
|
||||
List<BlockState> getTileEntities();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue