Package extracells.tileentity

Examples of extracells.tileentity.TileEntityCertusTank.fill()


      FluidStack liquid = FluidContainerRegistry.getFluidForFilledItem(current);
      TileEntityCertusTank tank = (TileEntityCertusTank) worldObj.getBlockTileEntity(x, y, z);

      if (liquid != null)
      {
        int amountFilled = tank.fill(ForgeDirection.UNKNOWN, liquid, true);

        if (amountFilled != 0 && !entityplayer.capabilities.isCreativeMode)
        {
          if (current.stackSize > 1)
          {
View Full Code Here


            {
              if (current.stackSize > 1)
              {
                if (!entityplayer.inventory.addItemStackToInventory(filled))
                {
                  tank.fill(ForgeDirection.UNKNOWN, new FluidStack(liquid, liquid.amount), true);
                  return false;
                } else
                {
                  entityplayer.inventory.mainInventory[entityplayer.inventory.currentItem].stackSize -= 1;
                }
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.