mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-09 00:22:08 -07:00
@@ -511,4 +511,13 @@ public interface Block extends Metadatable {
|
|||||||
*/
|
*/
|
||||||
@NotNull
|
@NotNull
|
||||||
VoxelShape getCollisionShape();
|
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);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user