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