Examples of AECableType


Examples of appeng.api.util.AECableType

  public AECableType getCableConnectionType(ForgeDirection dir)
  {
    IPart part = getPart( dir );
    if ( part != null && part instanceof IGridHost )
    {
      AECableType t = ((IGridHost) part).getCableConnectionType( dir );
      if ( t != null && t != AECableType.NONE )
        return t;
    }

    if ( getCenter() != null )
View Full Code Here

Examples of appeng.api.util.AECableType

  private boolean isDense(ForgeDirection of)
  {
    TileEntity te = tile.getWorldObj().getTileEntity( tile.xCoord + of.offsetX, tile.yCoord + of.offsetY, tile.zCoord + of.offsetZ );
    if ( te instanceof IGridHost )
    {
      AECableType t = ((IGridHost) te).getCableConnectionType( of.getOpposite() );
      return t == AECableType.DENSE;
    }
    return false;
  }
View Full Code Here

Examples of appeng.api.util.AECableType

  private boolean isSmart(ForgeDirection of)
  {
    TileEntity te = tile.getWorldObj().getTileEntity( tile.xCoord + of.offsetX, tile.yCoord + of.offsetY, tile.zCoord + of.offsetZ );
    if ( te instanceof IGridHost )
    {
      AECableType t = ((IGridHost) te).getCableConnectionType( of.getOpposite() );
      return t == AECableType.SMART;
    }
    return false;
  }
View Full Code Here

Examples of appeng.api.util.AECableType

    {
      IPart p = getHost().getPart( dir );
      if ( p != null && p instanceof IGridHost )
      {
        IGridHost igh = (IGridHost) p;
        AECableType type = igh.getCableConnectionType( dir.getOpposite() );
        if ( type == AECableType.COVERED || type == AECableType.SMART )
        {
          useCovered = true;
          break;
        }
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.