Package erogenousbeef.bigreactors.common.multiblock.tileentity

Examples of erogenousbeef.bigreactors.common.multiblock.tileentity.TileEntityTurbinePartStandard


    }
    else if(metadata == METADATA_COMPUTERPORT) {
      return new TileEntityTurbineComputerPort();
    }
    else {
      return new TileEntityTurbinePartStandard();
    }
  }
View Full Code Here


      int metadata = world.getBlockMetadata(x, y, z);
      if(metadata == METADATA_BEARING) {
          TileEntity te = world.getTileEntity(x, y, z);
        if(te instanceof TileEntityTurbinePartStandard) {
          // Rotor bearing found!
          TileEntityTurbinePartStandard bearing = (TileEntityTurbinePartStandard)te;
          MultiblockTurbine turbine = bearing.getTurbine();
          if(turbine != null && turbine.getActive()) {
            // Spawn particles!
            int numParticles = Math.min(20, Math.max(1, turbine.getFluidConsumedLastTick() / 40));
            ForgeDirection inwardsDir = bearing.getOutwardsDir().getOpposite();
            CoordTriplet minCoord, maxCoord;
            minCoord = turbine.getMinimumCoord();
            maxCoord = turbine.getMaximumCoord();
            minCoord.x++; minCoord.y++; minCoord.z++;
            maxCoord.x--; maxCoord.y--; maxCoord.z--;
View Full Code Here

TOP

Related Classes of erogenousbeef.bigreactors.common.multiblock.tileentity.TileEntityTurbinePartStandard

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.