Add isSuffocating to Block and BlockState (#12445)
This commit is contained in:
@@ -817,4 +817,11 @@ public interface Block extends Metadatable, Translatable, net.kyori.adventure.tr
|
||||
return this.getBlockData().getDestroySpeed(itemStack, considerEnchants);
|
||||
}
|
||||
// Paper end - destroy speed API
|
||||
|
||||
/**
|
||||
* Checks if the block can suffocate.
|
||||
*
|
||||
* @return {@code true} if the block can suffocate
|
||||
*/
|
||||
boolean isSuffocating();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user