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--;