ItemStack repair check API
This commit is contained in:
@@ -187,5 +187,15 @@ public interface UnsafeValues {
|
||||
* @return the server's protocol version
|
||||
*/
|
||||
int getProtocolVersion();
|
||||
|
||||
/**
|
||||
* Checks if an itemstack can be repaired with another itemstack.
|
||||
* Returns false if either argument's type is not an item ({@link Material#isItem()}).
|
||||
*
|
||||
* @param itemToBeRepaired the itemstack to be repaired
|
||||
* @param repairMaterial the repair material
|
||||
* @return true if valid repair, false if not
|
||||
*/
|
||||
public boolean isValidRepairItemStack(@org.jetbrains.annotations.NotNull ItemStack itemToBeRepaired, @org.jetbrains.annotations.NotNull ItemStack repairMaterial);
|
||||
// Paper end
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user