Package crazypants.enderio.machine

Examples of crazypants.enderio.machine.IPoweredTask


    if(vat.getProgress() < 1 && vat.getProgress() > 0) {
      int scaled = vat.getProgressScaled(12);
      drawTexturedModalRect(guiLeft + 81, guiTop + 76 - scaled, 176, 12 - scaled, 14, scaled + 2);

      IIcon inputIcon = null;
      IPoweredTask task = vat.getCurrentTask();
      for (MachineRecipeInput input : task.getInputs()) {
        if(input.fluid != null && input.fluid.getFluid() != null) {
          inputIcon = input.fluid.getFluid().getStillIcon();
          break;
        }
      }
      IMachineRecipe rec = task.getRecipe();
      IIcon outputIcon = null;
      for (ResultStack res : rec.getCompletedResult(1.0f, task.getInputs())) {
        if(res.fluid != null && res.fluid.getFluid() != null) {
          outputIcon = res.fluid.getFluid().getStillIcon();
        }
      }
View Full Code Here


    return res;
  }

  @Override
  protected void taskComplete() {
    IPoweredTask ct = currentTask;
    super.taskComplete();
    //run it again if the ball says so
    if(gb != null && useGrindingBall) {
      float chance = random.nextFloat();
      float mul = gb.getGrindingMultiplier() - 1;
View Full Code Here

TOP

Related Classes of crazypants.enderio.machine.IPoweredTask

Copyright © 2018 www.massapicom. 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.