mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-31 21:37:39 +01:00
SPIGOT-6781: Add Block#canPlace
By: coll1234567 <joshl5324@gmail.com>
This commit is contained in:
parent
f3fd09df80
commit
d0acafa8d8
@ -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 New Issue
Block a user