Package powercrystals.core.inventory

Examples of powercrystals.core.inventory.IInventoryManager.removeItem()


          ItemStack remaining = UtilInventory.dropStack(this, stackToDrop, this.getDirectionFacing(), this.getDirectionFacing());
         
          // remaining == null if dropped successfully.
          if(remaining == null)
          {
            inventory.removeItem(1, stackToDrop);
            break inv;
          }
        }
      }
    }
View Full Code Here


        if(remaining != null)
        {
          stackToAdd.stackSize -= remaining.stackSize;
          if(stackToAdd.stackSize > 0)
          {
            chest.removeItem(stackToAdd.stackSize, stackToAdd);
          }
        }
        else
        {
          chest.removeItem(stackToAdd.stackSize, stackToAdd);
View Full Code Here

            chest.removeItem(stackToAdd.stackSize, stackToAdd);
          }
        }
        else
        {
          chest.removeItem(stackToAdd.stackSize, stackToAdd);
          break;
        }
      }
    }
  }
View Full Code Here

      if(remaining != null)
      {
        stackToAdd.stackSize -= remaining.stackSize;
      }
     
      minecart.removeItem(stackToAdd.stackSize, stackToAdd);
    }
  }
 
  @Override
  @SideOnly(Side.CLIENT)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.