Examples of FluidTankInfo


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

Examples of net.minecraftforge.fluids.FluidTankInfo

  {
    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

Examples of net.minecraftforge.fluids.FluidTankInfo

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

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

Examples of net.minecraftforge.fluids.FluidTankInfo

    return false;
  }

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

Examples of net.minecraftforge.fluids.FluidTankInfo

    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

Examples of net.minecraftforge.fluids.FluidTankInfo

    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
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.