mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-02 17:32:03 +01:00
SPIGOT-6781: Add Block#canPlace
By: coll1234567 <joshl5324@gmail.com>
This commit is contained in:
parent
f3fd09df80
commit
d0acafa8d8
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…
Reference in a new issue