Package erogenousbeef.bigreactors.common.multiblock.tileentity

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


    if(part instanceof ITickableMultiblockPart) {
      attachedTickables.add((ITickableMultiblockPart)part);
    }
   
    if(part instanceof TileEntityReactorFuelRod) {
      TileEntityReactorFuelRod fuelRod = (TileEntityReactorFuelRod)part;
      attachedFuelRods.add(fuelRod);

      // Reset iterator
      currentFuelRod = attachedFuelRods.iterator();
View Full Code Here


      if(!currentFuelRod.hasNext()) {
        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());
View Full Code Here

       
        // Render internal bits, if we can
        TileEntity te;
        te = world.getTileEntity(x, y, z);
        if(te instanceof TileEntityReactorFuelRod) {
          TileEntityReactorFuelRod fuelRod = (TileEntityReactorFuelRod)te;
          if(fuelRod.isConnected()) {
            MultiblockReactor reactor = (MultiblockReactor)fuelRod.getMultiblockController();
            int fuelAmount = reactor.getFuelAmount();
            int wasteAmount = reactor.getWasteAmount();
            int totalFluid = fuelAmount + wasteAmount;
            int capacity = reactor.getCapacity();
            if(capacity > 0 && totalFluid > 0) {
View Full Code Here

  @Override
  public boolean isOpaqueCube() { return false; }

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

TOP

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

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.