Examples of partMap()


Examples of codechicken.multipart.TileMultipart.partMap()

        BlockCoord pos = new BlockCoord(g.tile()).offset(absDir);
        TileMultipart t = PRLib.getMultipartTile(g.world(), pos);
        if (t != null)
        {
            TMultiPart tp = t.partMap(g.side());
            if (tp instanceof ITopArrayWire)
            {
                int a_r = ((GatePart) tp).rotation();
                return (a_r & 1) == (g.rotation() & 1);
            }
View Full Code Here

Examples of codechicken.multipart.TileMultipart.partMap()

        int absDir = Rotation.rotateSide(side(), r);

        BlockCoord pos = new BlockCoord(tile()).offset(absDir).offset(side());
        TileMultipart t = PRLib.getMultipartTile(world(), pos);
        if (t != null)
            return getPartSignal(t.partMap(absDir^1), Rotation.rotationTo(absDir^1, side()^1));

        return 0;
    }

    @Override
View Full Code Here

Examples of codechicken.multipart.TileMultipart.partMap()

        BlockCoord pos = new BlockCoord(tile()).offset(absDir);
        TileMultipart t = PRLib.getMultipartTile(world(), pos);
        if (t != null && (connMap&0x10<<r) != 0)
        {
            TMultiPart tp = t.partMap(side());
            if (tp != null)
                s = getPartSignal(tp, (r+2)%4);
        }
        else
        {
View Full Code Here

Examples of codechicken.multipart.TileMultipart.partMap()

        BlockCoord pos = new BlockCoord(tile()).offset(absDir).offset(side());

        TileMultipart t = PRLib.getMultipartTile(world(), pos);
        if (t != null)
        {
            TMultiPart tp = t.partMap(absDir^1);
            if (tp == prev)
                return;
            if (propogateTo(tp, mode))
                return;
        }
View Full Code Here

Examples of codechicken.multipart.TileMultipart.partMap()

        BlockCoord pos = new BlockCoord(tile()).offset(absDir);

        TileMultipart t = PRLib.getMultipartTile(world(), pos);
        if (t != null)
        {
            TMultiPart tp = t.partMap(side());
            if (tp == prev)
                return;
            if (propogateTo(tp, mode))
                return;
        }
View Full Code Here

Examples of codechicken.multipart.TileMultipart.partMap()

        int absDir = Rotation.rotateSide(side(), r);

        BlockCoord pos = new BlockCoord(tile()).offset(absDir).offset(side());
        TileMultipart t = PRLib.getMultipartTile(world(), pos);
        if (t != null)
            return getBundledPartSignal(t.partMap(absDir^1), Rotation.rotationTo(absDir^1, side()^1));

        return null;
    }

    public byte[] calculateBundledStraightSignal(int r)
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.