@Override
  public void refresh(float deltaT) {
    float alpha;
    if (hasTracker == false) {
      alpha = (float) descriptor.alphaTrunk(pannelAlphaSyncValue);
    } else {
      alpha =
          (float)
              descriptor.alphaTrunk(SolarPannelSlowProcess.getSolarAlpha(tileEntity.getWorldObj()));
    }
    interpol.setTarget(alpha);
    if (boot) {
      boot = false;
      interpol.setValueFromTarget();
    }

    interpol.step(deltaT);
  }
Ejemplo n.º 2
0
 public void stepGraphic() {
   step(FrameTime.get());
 }