Package forestry.core.gadgets

Examples of forestry.core.gadgets.Engine


    if (tile instanceof TilePowered)
      return !((TilePowered) tile).hasFuelMin(threshold);

    if (tile instanceof Engine) {
      Engine engine = (Engine) tile;
      return !engine.hasFuelMin(threshold);
    }

    return false;
  }
View Full Code Here


  }

  @Override
  public void renderTileEntityAt(TileEntity tile, double d, double d1, double d2, float f) {

    Engine engine = (Engine) tile;

    if (engine != null)
      render(engine.getTemperatureState(), engine.progress, engine.getOrientation(), d, d1, d2);
  }
View Full Code Here

  public boolean onBlockActivated(World world, int x, int y, int z, EntityPlayer player, int side, float fXplayerClick, float fY, float fZ) {

    if (player.isSneaking())
      return false;

    Engine tile = (Engine) world.getTileEntity(x, y, z);
    if (player.getCurrentEquippedItem() != null && Utils.canWrench(player, x, y, z)) {
      tile.rotateEngine();
      Utils.useWrench(player, x, y, z);
      return true;
    }

    return false;
View Full Code Here

    return false;
  }

  @Override
  public boolean rotateBlock(World world, int x, int y, int z, ForgeDirection axis) {
    Engine tile = (Engine) world.getTileEntity(x, y, z);
    tile.rotateEngine();
    return true;
  }
View Full Code Here

TOP

Related Classes of forestry.core.gadgets.Engine

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.