mirror of
https://github.com/PaperMC/Paper.git
synced 2026-11-05 17:22:42 -05:00
#665: Add test for Material#getCraftingRemainingItem()
This commit is contained in:
1 parent
cfeef75cd9
commit
aae46f82ea
1 file changed
+10
@@ -245,4 +245,14 @@ public class PerMaterialTest extends AbstractTestingBase {
|
||||
assertNotNull(material.createBlockData());
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testCraftingRemainingItem() {
|
||||
if (material.isItem()) {
|
||||
Item expectedItem = CraftMagicNumbers.getItem(material).p(); // PAIL rename p() -> getCraftingRemainingItem()
|
||||
Material expected = expectedItem == null ? null : CraftMagicNumbers.getMaterial(expectedItem);
|
||||
|
||||
assertThat(material.getCraftingRemainingItem(), is(expected));
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user