mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-21 15:54:45 +01:00
SPIGOT-5250: Add ChunkSnapshot.contains
By: md_5 <git@md-5.net>
This commit is contained in:
parent
46e42dd362
commit
a95818dc6a
1 changed files with 8 additions and 0 deletions
|
@ -131,4 +131,12 @@ public interface ChunkSnapshot {
|
|||
* @return true if empty, false if not
|
||||
*/
|
||||
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