mirror of
https://hub.spigotmc.org/stash/scm/spigot/bukkit.git
synced 2025-09-18 21:45:12 +00:00
SPIGOT-6781: Add Block#canPlace
This commit is contained in:
parent
64c8bd39e0
commit
07a055315c
1 changed files with 9 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue