Examples of canConnectToExternal()


Examples of crazypants.enderio.conduit.redstone.IRedstoneConduit.canConnectToExternal()

  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;
  }

  private static IRedstoneConduit getRedstoneConduit(IBlockAccess world, int x, int y, int z) {
    TileEntity te = world.getTileEntity(x, y, z);
    if(!(te instanceof IConduitBundle)) {
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.