Exemplo n.º 1
0
  @Override
  public int getScaledLevel() {
    if (dummy) {
      return height - 2;
    }

    return infoHandler.getTank().getFluid() != null
        ? infoHandler.getTank().getFluidAmount()
            * (height - 2)
            / infoHandler.getTank().getCapacity()
        : 0;
  }
Exemplo n.º 2
0
  @Override
  public String getTooltipText() {
    if (dummy) {
      return dummyType.getLocalizedName();
    }

    return infoHandler.getTank().getFluid() != null
        ? infoHandler
                .getTank()
                .getFluid()
                .getFluid()
                .getLocalizedName(infoHandler.getTank().getFluid())
            + ": "
            + infoHandler.getTank().getFluidAmount()
            + "mB"
        : MekanismUtils.localize("gui.empty");
  }
Exemplo n.º 3
0
  @Override
  public IIcon getIcon() {
    if (dummy) {
      return dummyType.getIcon();
    }

    return infoHandler.getTank().getFluid().getFluid().getIcon();
  }