use of pl.asie.charset.wires.logic.PartWireBase in project Charset by CharsetMC.
the class WireUtils method canConnectInternal.
public static boolean canConnectInternal(PartWireBase wire, WireFace side) {
WireFace location = wire.location;
IMultipartContainer container = wire.getContainer();
if (side == location) {
return false;
}
if (side != WireFace.CENTER && location != WireFace.CENTER) {
if (isBlockingPart(container, PartSlot.getEdgeSlot(side.facing, location.facing))) {
return false;
}
}
PartWireBase wire2 = getWire(container, side);
return wire2 != null && wire2.type.connects(wire.type);
}
Aggregations