Examples of canConduitConnect()


Examples of crazypants.enderio.power.IPowerInterface.canConduitConnect()

      if(mode != IoMode.DISABLED) {
        BlockCoord checkLoc = bc.getLocation(dir);
        TileEntity te = worldObj.getTileEntity(checkLoc.x, checkLoc.y, checkLoc.z);
        if(!(te instanceof TileCapacitorBank)) {
          IPowerInterface ph = PowerHandlerUtil.create(te);
          if(ph != null && ph.canConduitConnect(dir)) {
            if(localReceptors == null) {
              localReceptors = new ArrayList<Receptor>();
            }
            Receptor r = new Receptor(ph, dir, mode);
            localReceptors.add(r);
View Full Code Here

Examples of crazypants.enderio.power.IPowerInterface.canConduitConnect()

  @Override
  public boolean canConnectToExternal(ForgeDirection direction, boolean ignoreDisabled) {
    IPowerInterface rec = getExternalPowerReceptor(direction);
   
    return rec != null && rec.canConduitConnect(direction);
  }
 
  @Override
  public boolean canConnectToConduit(ForgeDirection direction, IConduit conduit) {
    boolean res = super.canConnectToConduit(direction, conduit);
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.