SPIGOT-5250: Add ChunkSnapshot.contains

This commit is contained in:
md_5 2019-09-07 16:40:08 +10:00
parent 71973d8507
commit e3c812dd0c

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