Add Block#isValidTool

Deprecated for removal
This commit is contained in:
Jake Potrebic 2020-07-06 12:44:23 -07:00
parent c6ff2b9aee
commit bcd78c9bf2

View file

@ -232,6 +232,19 @@ public interface Block extends Metadatable, Translatable, net.kyori.adventure.tr
}
// Paper end
// Paper start - add isValidTool
/**
* Checks if the itemstack is a valid tool to
* break the block with
*
* @param itemStack The (tool) itemstack
* @return whether the block will drop items
* @deprecated partially replaced by {@link Block#isPreferredTool(ItemStack)}
*/
@Deprecated(since = "1.21", forRemoval = true) // Paper
boolean isValidTool(@NotNull ItemStack itemStack);
// Paper end - add isValidTool
/**
* Gets the Location of the block
*