Package crazypants.enderio.conduit.me

Examples of crazypants.enderio.conduit.me.IMEConduit


  @Method(modid = "appliedenergistics2")
  public IGridNode getGridNode(ForgeDirection dir) {
    if (dir == null || dir == ForgeDirection.UNKNOWN) {
      return (IGridNode) node;
    } else {
      IMEConduit cond = getConduit(IMEConduit.class);
      if (cond != null) {
        if (cond.getConnectionMode(dir.getOpposite()) == ConnectionMode.IN_OUT) {
          return (IGridNode) node;
        } else {
          return null;
        }
      }
View Full Code Here


  }

  @Override
  @Method(modid = "appliedenergistics2")
  public AECableType getCableConnectionType(ForgeDirection dir) {
    IMEConduit cond = getConduit(IMEConduit.class);
    if (cond == null) {
      return AECableType.NONE;
    } else {
      ConnectionMode mode = cond.getConnectionMode(dir);
      return mode == ConnectionMode.DISABLED ? AECableType.NONE : AECableType.SMART;
    }
  }
View Full Code Here

TOP

Related Classes of crazypants.enderio.conduit.me.IMEConduit

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.