Package erogenousbeef.bigreactors.common.multiblock.tileentity

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


    if(part instanceof TileEntityReactorAccessPort) {
      attachedAccessPorts.add((TileEntityReactorAccessPort)part);
    }
   
    if(part instanceof TileEntityReactorControlRod) {
      TileEntityReactorControlRod controlRod = (TileEntityReactorControlRod)part;
      attachedControlRods.add(controlRod);
    }

    if(part instanceof TileEntityReactorPowerTap) {
      attachedPowerTaps.add((TileEntityReactorPowerTap)part);
View Full Code Here


        currentFuelRod = attachedFuelRods.iterator();
      }

      // Radiate from that control rod
      TileEntityReactorFuelRod source  = currentFuelRod.next();
      TileEntityReactorControlRod sourceControlRod = (TileEntityReactorControlRod)worldObj.getTileEntity(source.xCoord, getMaximumCoord().y, source.zCoord);
      if(sourceControlRod != null)
      {
        RadiationData radData = radiationHelper.radiate(worldObj, fuelContainer, source, sourceControlRod, getFuelHeat(), getReactorHeat(), attachedControlRods.size());

        // Assimilate results of radiation
View Full Code Here

  public static class Handler extends WorldMessageServer.Handler<ControlRodChangeInsertionMessage> {
    @Override
    protected IMessage handleMessage(ControlRodChangeInsertionMessage message,
                    MessageContext ctx, TileEntity te) {
      if(te instanceof TileEntityReactorControlRod) {
        TileEntityReactorControlRod rod = (TileEntityReactorControlRod)te;
        int newInsertion = rod.getControlRodInsertion() + (short)message.amount;
        if(message.changeAll && rod.getReactorController() != null)
        {
          rod.getReactorController().setAllControlRodInsertionValues(newInsertion);
        }
        else {
          rod.setControlRodInsertion((short)newInsertion);
        }
      }
      return null;
    }
View Full Code Here

      return "-- ALL --";
    }
    else {
      TileEntity te = port.getWorldObj().getTileEntity(location.x, location.y, location.z);
      if( te instanceof TileEntityReactorControlRod ) {
        TileEntityReactorControlRod rod = (TileEntityReactorControlRod)te;
        if( rod.getName().equals("")) {
          return location.toString();
        }
        else {
          return rod.getName();
        }
      }
      else {
        return "INVALID: " + location.toString();
      }
View Full Code Here

      case METADATA_COMPUTERPORT:
        return new TileEntityReactorComputerPort();
      case METADATA_COOLANTPORT:
        return new TileEntityReactorCoolantPort();
      case METADATA_CONTROLROD:
        return new TileEntityReactorControlRod();
      default:
        return new TileEntityReactorPart();
    }
  }
View Full Code Here

TOP

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

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.