Delegate ItemStack (#10852)

This commit is contained in:
Jake Potrebic
2024-06-17 12:12:42 -07:00
parent 27a9efdca5
commit 70f3730d25
7 changed files with 1599 additions and 8 deletions

View File

@@ -69,11 +69,4 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+
+ assertFalse(diamond.canRepair(new ItemStack(Material.OAK_BUTTON)), "diamond can repair oak button");
+ }
+
+ @Test
+ public void testInvalidItem() {
+ ItemStack badItemStack = new ItemStack(Material.ACACIA_WALL_SIGN);
+
+ assertFalse(badItemStack.isRepairableBy(new ItemStack(Material.DIAMOND)), "acacia wall sign is repairable by diamond");
+ }
+}