SPIGOT-5250: Add ChunkSnapshot.contains

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot 2019-09-07 16:40:08 +10:00
parent 46e42dd362
commit a95818dc6a

View file

@ -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);
}