Package erogenousbeef.bigreactors.common.multiblock.tileentity

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


      case METADATA_REDNETPORT:
        return new TileEntityReactorRedNetPort();
      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


    // Do toggly fiddly things for access/coolant ports
    if(!world.isRemote && (isAccessPort(metadata) || isCoolantPort(metadata))) {
      if(StaticUtils.Inventory.isPlayerHoldingWrench(player)) {
        if(te instanceof TileEntityReactorCoolantPort) {
          TileEntityReactorCoolantPort cp = (TileEntityReactorCoolantPort)te;
          cp.setInlet(!cp.isInlet(), true);
          return true;
        }
        else if(te instanceof TileEntityReactorAccessPort) {
          TileEntityReactorAccessPort cp = (TileEntityReactorAccessPort)te;
          cp.setInlet(!cp.isInlet());
          return true;
        }
      }
      else if(isCoolantPort(metadata)) {
        return false;
View Full Code Here

  //// UGLY UI CODE HERE ////
  private IIcon getCoolantPortIcon(IBlockAccess blockAccess, int x, int y,
      int z, int side) {
    TileEntity te = blockAccess.getTileEntity(x, y, z);
    if(te instanceof TileEntityReactorCoolantPort) {
      TileEntityReactorCoolantPort port = (TileEntityReactorCoolantPort)te;
     
      if(!isReactorAssembled(port) || isOutwardsSide(port, side)) {
        if(port.isInlet()) {
          return _icons[METADATA_COOLANTPORT][PORT_INLET];
        }
        else {
          return _icons[METADATA_COOLANTPORT][PORT_OUTLET];
        }
View Full Code Here

TOP

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

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.