Package crazypants.enderio.conduit.redstone

Examples of crazypants.enderio.conduit.redstone.IRedstoneConduit


  }

  @Override
  public int isProvidingStrongPower(IBlockAccess world, int x, int y, int z,
      int par5) {
    IRedstoneConduit con = getRedstoneConduit(world, x, y, z);
    if(con == null) {
      return 0;
    }
    return con.isProvidingStrongPower(ForgeDirection.getOrientation(par5));
  }
View Full Code Here


  }

  @Override
  public int isProvidingWeakPower(IBlockAccess world, int x, int y, int z,
      int par5) {
    IRedstoneConduit con = getRedstoneConduit(world, x, y, z);
    if(con == null) {
      return 0;
    }

    return con.isProvidingWeakPower(ForgeDirection.getOrientation(par5));
  }
View Full Code Here

    return res;
  }

  @Override
  public void onInputsChanged(World world, int x, int y, int z, ForgeDirection side, int[] inputValues) {
    IRedstoneConduit conduit = getRedstoneConduit(world, x, y, z);
    if(conduit == null) {
      return;
    }

    conduit.onInputsChanged(world, x, y, z, side, inputValues);
  }
View Full Code Here

    // Unused because only called in "Single" mode.
  }

  @Override
  public int[] getOutputValues(World world, int x, int y, int z, ForgeDirection side) {
    IRedstoneConduit conduit = getRedstoneConduit(world, x, y, z);
    if(conduit == null) {
      return null;
    }

    return conduit.getOutputValues(world, x, y, z, side);
  }
View Full Code Here

    return conduit.getOutputValues(world, x, y, z, side);
  }

  @Override
  public int getOutputValue(World world, int x, int y, int z, ForgeDirection side, int subnet) {
    IRedstoneConduit conduit = getRedstoneConduit(world, x, y, z);
    if(conduit == null) {
      return 0;
    }

    return conduit.getOutputValue(world, x, y, z, side, subnet);
  }
View Full Code Here

  }

  @Override
  @Optional.Method(modid = "MineFactoryReloaded")
  public RedNetConnectionType getConnectionType(World world, int x, int y, int z, ForgeDirection side) {
    IRedstoneConduit conduit = getRedstoneConduit(world, x, y, z);
    if(conduit == null) {
      return RedNetConnectionType.None;
    }
    return conduit.canConnectToExternal(side, false) ? RedNetConnectionType.CableAll : RedNetConnectionType.None;
  }
View Full Code Here

  public static int getInternalSignalForColor(IConduitBundle bundle, DyeColor col) {
    int signalStrength = 0;
    if(bundle == null) {
      return 0;
    }
    IRedstoneConduit rsCon = bundle.getConduit(IRedstoneConduit.class);
    if(rsCon != null) {
      Set<Signal> signals = rsCon.getNetworkOutputs(ForgeDirection.UNKNOWN);
      for (Signal sig : signals) {
        if(sig.color == col) {
          if(sig.strength > signalStrength) {
            signalStrength = sig.strength;
          }
View Full Code Here

TOP

Related Classes of crazypants.enderio.conduit.redstone.IRedstoneConduit

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.