Block Ticking API

This commit is contained in:
Owen1212055
2021-12-26 13:23:52 -05:00
parent c44d007ade
commit 763c827879
2 changed files with 45 additions and 0 deletions
@@ -295,4 +295,14 @@ public interface BlockData extends Cloneable {
*/
float getDestroySpeed(@NotNull ItemStack itemStack, boolean considerEnchants);
// Paper end - destroy speed API
// Paper start - Tick API
/**
* Gets if this block is ticked randomly in the world.
* The blocks current state may change this value.
*
* @return is ticked randomly
*/
boolean isRandomlyTicked();
// Paper end - Tick API
}