Package net.minecraftforge.fluids

Examples of net.minecraftforge.fluids.FluidTankInfo


  }

  @Override
  public FluidTankInfo[] getTankInfo(ForgeDirection from) {
    if(from.ordinal() < ForgeDirection.VALID_DIRECTIONS.length) {
      return new FluidTankInfo[]{new FluidTankInfo(sideTanks[from.ordinal()])};
    } else {
      return null;
    }
  }
View Full Code Here


  {
    try
    {
      IMEInventoryHandler h = getHandler( StorageChannel.FLUIDS );
      if ( h.getChannel() == StorageChannel.FLUIDS )
        return new FluidTankInfo[] { new FluidTankInfo( null, 1 ) }; // eh?
    }
    catch (ChestNoHandler ignored)
    {
    }
View Full Code Here

        && tank.fluidID == fluid.getID();
  }

  @Override
  public FluidTankInfo[] getTankInfo(ForgeDirection from) {
    return new FluidTankInfo[] {new FluidTankInfo(tank, maxFluid)};
  }
View Full Code Here

    return false;
  }

  @Override
  public FluidTankInfo[] getTankInfo(ForgeDirection from) {
    return new FluidTankInfo[]{new FluidTankInfo(internalTanks[from.ordinal()])};
  }
View Full Code Here

    contents = new FluidTankInfo[originalInfo.length];

    for (int i = 0; i < contents.length; i++) {
      if (originalInfo[i] != null) {
        if (originalInfo[i].fluid != null) {
          contents[i] = new FluidTankInfo(originalInfo[i].fluid.copy(), originalInfo[i].capacity);
        } else {
          contents[i] = new FluidTankInfo(null, originalInfo[i].capacity);
        }
      }
    }
  }
View Full Code Here

    public FluidTankInfo[] getTankInfo(ForgeDirection from){
        updateXpFluid();
        if(curXpFluid != null) {
            EntityPlayer player = getPlayer();
            if(player != null) {
                return new FluidTankInfo[]{new FluidTankInfo(new FluidStack(curXpFluid, getPlayerXP(player) * PneumaticCraftAPIHandler.getInstance().liquidXPs.get(curXpFluid)), Integer.MAX_VALUE)};
            }
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of net.minecraftforge.fluids.FluidTankInfo

Copyright © 2018 www.massapicom. 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.