public CraftInventoryDoubleChest(InventoryLargeChest largeChest) { super(largeChest); if (largeChest.left instanceof InventoryLargeChest) { left = new CraftInventoryDoubleChest((InventoryLargeChest) largeChest.left); } else { left = new CraftInventory(largeChest.left); } if (largeChest.right instanceof InventoryLargeChest) { right = new CraftInventoryDoubleChest((InventoryLargeChest) largeChest.right); } else { right = new CraftInventory(largeChest.right); } }
public CraftInventoryDoubleChest(CraftInventory left, CraftInventory right) { super(new InventoryLargeChest("Large chest", left.getInventory(), right.getInventory())); this.left = left; this.right = right; }
public CraftInventoryDoubleChest(CraftInventory left, CraftInventory right) { super(new InventoryLargeChest("Large chest", (ITileInventory) left.getInventory(), (ITileInventory) right.getInventory())); this.left = left; this.right = right; }