mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-08-05 16:49:39 +00:00
SPIGOT-5250: Add ChunkSnapshot.contains
This commit is contained in:
parent
71973d8507
commit
e3c812dd0c
1 changed files with 8 additions and 0 deletions
|
@ -131,4 +131,12 @@ public interface ChunkSnapshot {
|
||||||
* @return true if empty, false if not
|
* @return true if empty, false if not
|
||||||
*/
|
*/
|
||||||
boolean isSectionEmpty(int sy);
|
boolean isSectionEmpty(int sy);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Tests if this snapshot contains the specified block.
|
||||||
|
*
|
||||||
|
* @param block block to test
|
||||||
|
* @return if the block is contained within
|
||||||
|
*/
|
||||||
|
boolean contains(@NotNull BlockData block);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue