SPIGOT-6781: Add Block#canPlace

By: coll1234567 <joshl5324@gmail.com>
This commit is contained in:
Bukkit/Spigot 2021-11-23 18:49:11 +11:00
parent f3fd09df80
commit d0acafa8d8

View File

@ -511,4 +511,13 @@ public interface Block extends Metadatable {
*/
@NotNull
VoxelShape getCollisionShape();
/**
* Checks if this block is a valid placement location for the specified
* block data.
*
* @param data the block data to check
* @return <code>true</code> if the block data can be placed here
*/
boolean canPlace(@NotNull BlockData data);
}