public ItemStack(Block.Block blockObj, int totalStack) { maxStack = blockObj.getMaxStack(); if (totalStack < maxStack) { totalStack = maxStack; } block = blockObj; total = totalStack; type = true; }
public void changeBlock(Block.Block newBlock) { block = newBlock; maxStack = newBlock.getMaxStack(); type = true; }