Package mrtjp.projectred.api

Examples of mrtjp.projectred.api.IConnectable


        if (t != null)
        {
            TMultiPart tp = t.partMap(absDir^1);
            if (tp instanceof IConnectable)
            {
                IConnectable conn = (IConnectable)tp;
                int r2 = Rotation.rotationTo(absDir^1, side()^1);
                return canConnectTo(conn, r) && conn.canConnectCorner(r2) && conn.connectCorner(this, r2, -1);
            }
        }

        return false;
    }
View Full Code Here


        if (t != null)
        {
            TMultiPart tp = t.partMap(side());
            if (tp instanceof IConnectable)
            {
                IConnectable conn = (IConnectable)tp;
                return canConnectTo(conn, r) && conn.connectStraight(this, (r+2)%4, -1);
            }
        }

        return connectStraightOverride(absDir);
    }
View Full Code Here

            return false;

        TMultiPart tp = tile().partMap(absDir);
        if (tp instanceof IConnectable)
        {
            IConnectable conn = (IConnectable)tp;
            return canConnectTo(conn, r) && conn.connectInternal(this, Rotation.rotationTo(absDir, side()));
        }

        return false;
    }
View Full Code Here

TOP

Related Classes of mrtjp.projectred.api.IConnectable

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.