Package erogenousbeef.bigreactors.common.multiblock.tileentity

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


  @Override
  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:
View Full Code Here


  }

  private IIcon getPowerTapIcon(IBlockAccess blockAccess, int x, int y, int z, int side) {
    TileEntity te = blockAccess.getTileEntity(x, y, z);
    if(te instanceof TileEntityReactorPowerTap) {
      TileEntityReactorPowerTap tap = (TileEntityReactorPowerTap)te;
     
      if(!isReactorAssembled(tap) || isOutwardsSide(tap, side)) {
        if(tap.hasEnergyConnection()) {
          return _icons[METADATA_POWERTAP][TAP_CONNECTED];
        }
        else {
          return _icons[METADATA_POWERTAP][TAP_DISCONNECTED];
        }
View Full Code Here

TOP

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

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.