mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-15 14:13:56 +01:00
Add Block#isValidTool
Deprecated for removal
This commit is contained in:
parent
c6ff2b9aee
commit
bcd78c9bf2
1 changed files with 13 additions and 0 deletions
|
@ -232,6 +232,19 @@ public interface Block extends Metadatable, Translatable, net.kyori.adventure.tr
|
||||||
}
|
}
|
||||||
// Paper end
|
// 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
|
* Gets the Location of the block
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in a new issue