Add isSuffocating to Block and BlockState (#12445)

This commit is contained in:
Pedro
2025-04-25 04:48:24 -04:00
committed by GitHub
parent a211ac2ec5
commit ae512811db
5 changed files with 38 additions and 11 deletions

View File

@@ -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();
}