コード例 #1
0
  @Override
  public void draw() {

    renderPreProcess = drawCable(Direction.YN, descriptor.cableRender, eConn, renderPreProcess);

    descriptor.draw((float) (interpol.get() * 180 / Math.PI - 90), front);
  }
コード例 #2
0
  @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);
  }