mirror of
https://github.com/PaperMC/Paper.git
synced 2025-02-07 16:12:02 +01:00
SPIGOT-5250: Add ChunkSnapshot.contains
By: md_5 <git@md-5.net>
This commit is contained in:
parent
46e42dd362
commit
a95818dc6a
@ -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…
Reference in New Issue
Block a user