コード例 #1
0
  @Override
  public void drawExtras(int i) {
    CachedIORecipe recipe = (CachedIORecipe) arecipes.get(i);

    if (recipe.pressurizedRecipe.getInput().getFluid() != null) {
      fluidInput.setDummyType(recipe.pressurizedRecipe.getInput().getFluid().getFluid());
      fluidInput.renderScale(0, 0, -xOffset, -yOffset);
    }

    if (recipe.pressurizedRecipe.getInput().getGas() != null) {
      gasInput.setDummyType(recipe.pressurizedRecipe.getInput().getGas().getGas());
      gasInput.renderScale(0, 0, -xOffset, -yOffset);
    }

    if (recipe.pressurizedRecipe.getOutput().getGasOutput() != null) {
      gasOutput.setDummyType(recipe.pressurizedRecipe.getOutput().getGasOutput().getGas());
      gasOutput.renderScale(0, 0, -xOffset, -yOffset);
    }
  }
コード例 #2
0
  @Override
  public void drawExtras(int i) {
    CachedIORecipe recipe = (CachedIORecipe) arecipes.get(i);

    if (recipe.fluidInput != null) {
      fluidInput.setDummyType(recipe.fluidInput.ingredient.getFluid());
      fluidInput.renderScale(0, 0, -xOffset, -yOffset);
    }

    if (recipe.outputPair.leftGas != null) {
      displayGauge(28, 59 - xOffset, 19 - yOffset, 176, 68, 28, null, recipe.outputPair.leftGas);
      leftGas.setDummyType(recipe.outputPair.leftGas.getGas());
      leftGas.renderScale(0, 0, -xOffset, -yOffset);
    }

    if (recipe.outputPair.rightGas != null) {
      displayGauge(28, 101 - xOffset, 19 - yOffset, 176, 68, 28, null, recipe.outputPair.rightGas);
      rightGas.setDummyType(recipe.outputPair.rightGas.getGas());
      rightGas.renderScale(0, 0, -xOffset, -yOffset);
    }
  }