use of mods.railcraft.common.util.inventory.InventoryAdvanced in project Railcraft by Railcraft.
the class InventoryTest method moveOneItemTo.
@Test
void moveOneItemTo() {
ItemStack srcStack = new ItemStack(Items.APPLE, 32);
InventoryAdvanced invSrc = new InventoryAdvanced(6);
InventoryAdvanced invDest = new InventoryAdvanced(6);
invSrc.setInventorySlotContents(3, srcStack);
ItemStack resultStack = invSrc.moveOneItemTo(invDest);
Assertions.assertEquals(31, srcStack.getCount());
Assertions.assertEquals(1, resultStack.getCount());
Assertions.assertEquals(1, invDest.countItems());
}
Aggregations