Package erogenousbeef.bigreactors.common.multiblock.tileentity

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


  public TileEntity createNewTileEntity(World world, int metadata) {
    switch(metadata) {
      case METADATA_POWERTAP:
        return new TileEntityReactorPowerTap();
      case METADATA_ACCESSPORT:
        return new TileEntityReactorAccessPort();
      case METADATA_REDNETPORT:
        return new TileEntityReactorRedNetPort();
      case METADATA_COMPUTERPORT:
        return new TileEntityReactorComputerPort();
      case METADATA_COOLANTPORT:
View Full Code Here


          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

  private IIcon getAccessPortIcon(IBlockAccess blockAccess, int x, int y,
      int z, int side) {
    TileEntity te = blockAccess.getTileEntity(x, y, z);
    if(te instanceof TileEntityReactorAccessPort) {
      TileEntityReactorAccessPort port = (TileEntityReactorAccessPort)te;

      if(!isReactorAssembled(port) || isOutwardsSide(port, side)) {
        if(port.isInlet()) {
          return _icons[METADATA_ACCESSPORT][PORT_INLET];
        }
        else {
          return _icons[METADATA_ACCESSPORT][PORT_OUTLET];
        }
View Full Code Here

TOP

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

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.