Examples of TileEntityReactorPart


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

    if(part instanceof TileEntityReactorPowerTap) {
      attachedPowerTaps.add((TileEntityReactorPowerTap)part);
    }

    if(part instanceof TileEntityReactorPart) {
      TileEntityReactorPart reactorPart = (TileEntityReactorPart)part;
      if(BlockReactorPart.isController(reactorPart.getBlockMetadata())) {
        attachedControllers.add(reactorPart);
      }
    }

    if(part instanceof ITickableMultiblockPart) {
View Full Code Here

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

    if(part instanceof TileEntityReactorPowerTap) {
      attachedPowerTaps.remove((TileEntityReactorPowerTap)part);
    }

    if(part instanceof TileEntityReactorPart) {
      TileEntityReactorPart reactorPart = (TileEntityReactorPart)part;
      if(BlockReactorPart.isController(reactorPart.getBlockMetadata())) {
        attachedControllers.remove(reactorPart);
      }
    }

    if(part instanceof ITickableMultiblockPart) {
View Full Code Here

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

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

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

  private IIcon getControllerIcon(IBlockAccess blockAccess, int x, int y,
      int z, int side) {
    TileEntity te = blockAccess.getTileEntity(x, y, z);
    if(te instanceof TileEntityReactorPart) {
      TileEntityReactorPart controller = (TileEntityReactorPart)te;
      MultiblockReactor reactor = controller.getReactorController();
     
      if(reactor == null || !reactor.isAssembled()) {
        return _icons[METADATA_CONTROLLER][CONTROLLER_OFF];
      }
      else if(!isOutwardsSide(controller, side)) {
View Full Code Here

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

  private static final int VERTICAL = 5;
 
  private IIcon getCasingIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
    TileEntity te = blockAccess.getTileEntity(x, y, z);
    if(te instanceof TileEntityReactorPart) {
      TileEntityReactorPart part = (TileEntityReactorPart)te;
      PartPosition position = part.getPartPosition();
      MultiblockReactor reactor = part.getReactorController();
      if(reactor == null || !reactor.isAssembled()) {
        return _icons[METADATA_CASING][DEFAULT];
      }
     
      switch(position) {
View Full Code Here

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

  }
 
  private IIcon getFaceOrBlockIcon(IBlockAccess blockAccess, int x, int y, int z, int side, int metadata) {
    TileEntity te = blockAccess.getTileEntity(x, y, z);
    if(te instanceof TileEntityReactorPart) {
      TileEntityReactorPart part = (TileEntityReactorPart)te;
      if(!isReactorAssembled(part) || isOutwardsSide(part, side)) {
        return _icons[metadata][0];
      }
    }
    return this.blockIcon;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.