Package erogenousbeef.bigreactors.common.multiblock.tileentity

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


    return _subIcons[0];
  }

  @Override
  public TileEntity createNewTileEntity(World world, int metadata) {
    return new TileEntityTurbineRotorPart();
  }
View Full Code Here


      Block block, int modelId, RenderBlocks renderer) {
    int metadata = world.getBlockMetadata(x, y, z);
    TileEntity te = world.getTileEntity(x, y, z);
   
    if(te instanceof TileEntityTurbineRotorPart) {
      TileEntityTurbineRotorPart rotorPart = (TileEntityTurbineRotorPart)te;
      if(rotorPart.isConnected() && rotorPart.getTurbine().isAssembled() && rotorPart.getTurbine().getActive()) {
        // Don't draw if the turbine's active.
        return false;
      }
    }
   
View Full Code Here

  private void renderBladeFromWorld(RenderBlocks renderer, IBlockAccess world, int x, int y, int z, Block block, int metadata) {
    TileEntity te = world.getTileEntity(x, y, z);
    ForgeDirection rotorDir = ForgeDirection.UNKNOWN;
    if(te instanceof TileEntityTurbineRotorPart) {
      TileEntityTurbineRotorPart rotorPart = (TileEntityTurbineRotorPart)te;
      if(rotorPart.isConnected()) {
        rotorDir = rotorPart.getTurbine().getRotorDirection();
      }
    }
   
    if(rotorDir == ForgeDirection.UNKNOWN) {
      // Go walkies!
View Full Code Here

    if(newPart instanceof ITickableMultiblockPart) {
      attachedTickables.add((ITickableMultiblockPart)newPart);
    }
   
    if(newPart instanceof TileEntityTurbineRotorPart) {
      TileEntityTurbineRotorPart turbinePart = (TileEntityTurbineRotorPart)newPart;
      if(turbinePart.isRotorShaft()) {
        attachedRotorShafts.add(turbinePart);
      }
     
      if(turbinePart.isRotorBlade()) {
        attachedRotorBlades.add(turbinePart);
      }
    }
   
    if(newPart instanceof TileEntityTurbinePartGlass) {
View Full Code Here

    if(oldPart instanceof ITickableMultiblockPart) {
      attachedTickables.remove((ITickableMultiblockPart)oldPart);
    }
   
    if(oldPart instanceof TileEntityTurbineRotorPart) {
      TileEntityTurbineRotorPart turbinePart = (TileEntityTurbineRotorPart)oldPart;
      if(turbinePart.isRotorShaft()) {
        attachedRotorShafts.remove(turbinePart);
      }
     
      if(turbinePart.isRotorBlade()) {
        attachedRotorBlades.remove(turbinePart);
      }
    }
   
    if(oldPart instanceof TileEntityTurbinePartGlass) {
View Full Code Here

TOP

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

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.