Examples of addVector()


Examples of net.minecraft.util.Vec3.addVector()

    EnumSet<ForgeDirection> possibleDirections = iHost.getTargets();
    for (ForgeDirection s : possibleDirections)
    {
      Vec3 from = Vec3.createVectorHelper( tile.xCoord + 0.5, tile.yCoord + 0.5, tile.zCoord + 0.5 );
      from = from.addVector( s.offsetX * 0.501, s.offsetY * 0.501, s.offsetZ * 0.501 );
      Vec3 to = from.addVector( s.offsetX, s.offsetY, s.offsetZ );

      Block blk = w.getBlock( tile.xCoord + s.offsetX, tile.yCoord + s.offsetY, tile.zCoord + s.offsetZ );
      MovingObjectPosition mop = w.rayTraceBlocks( from, to, true );

View Full Code Here

Examples of net.minecraft.util.Vec3.addVector()

            byte0 = 1;
        if (vec3d8 == vec3d6)
            byte0 = 2;
        if (vec3d8 == vec3d7)
            byte0 = 3;
        return new MovingObjectPosition(i, j, k, byte0, vec3d8.addVector(i, j, k));
    }

    private static boolean isVecInsideYZBounds(Vec3 vec3d) {
        if (vec3d == null)
            return false;
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Shape.addVector()

        }
        final Color color = Toolkit.getColor(ColorsAndFonts.COLOR_SECONDARY2);

        final int arrowHeight = width / 2;
        final Shape upArrow = new Shape(0, arrowHeight);
        upArrow.addVector(arrowHeight, -arrowHeight);
        upArrow.addVector(arrowHeight, arrowHeight);
        if (mouseOverButton == over + 6) {
            canvas.drawSolidShape(upArrow, x, y + 2, color);
        } else {
            canvas.drawShape(upArrow, x, y + 2, color);
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Shape.addVector()

        final Color color = Toolkit.getColor(ColorsAndFonts.COLOR_SECONDARY2);

        final int arrowHeight = width / 2;
        final Shape upArrow = new Shape(0, arrowHeight);
        upArrow.addVector(arrowHeight, -arrowHeight);
        upArrow.addVector(arrowHeight, arrowHeight);
        if (mouseOverButton == over + 6) {
            canvas.drawSolidShape(upArrow, x, y + 2, color);
        } else {
            canvas.drawShape(upArrow, x, y + 2, color);
        }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Shape.addVector()

        } else {
            canvas.drawShape(upArrow, x, y + 2, color);
        }

        final Shape downArrow = new Shape(0, 0);
        downArrow.addVector(arrowHeight, arrowHeight);
        downArrow.addVector(arrowHeight, -arrowHeight);
        if (mouseOverButton == over) {
            canvas.drawSolidShape(downArrow, x, y + height - 4 - arrowHeight, color);
        } else {
            canvas.drawShape(downArrow, x, y + height - 4 - arrowHeight, color);
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Shape.addVector()

            canvas.drawShape(upArrow, x, y + 2, color);
        }

        final Shape downArrow = new Shape(0, 0);
        downArrow.addVector(arrowHeight, arrowHeight);
        downArrow.addVector(arrowHeight, -arrowHeight);
        if (mouseOverButton == over) {
            canvas.drawSolidShape(downArrow, x, y + height - 4 - arrowHeight, color);
        } else {
            canvas.drawShape(downArrow, x, y + height - 4 - arrowHeight, color);
        }
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Shape.addVector()

    @Override
    protected void drawResizeBorder(final Canvas canvas, final Size size) {
        if (resizing) {
            final Shape shape = new Shape(0, 0);
            final int resizeMarkerSize = 10;
            shape.addVector(resizeMarkerSize, 0);
            shape.addVector(0, resizeMarkerSize);
            shape.addVector(-resizeMarkerSize, -resizeMarkerSize);
            final Color color = Toolkit.getColor(ColorsAndFonts.COLOR_SECONDARY3);
            final int height = size.getHeight();
            final int width = size.getWidth();
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Shape.addVector()

    protected void drawResizeBorder(final Canvas canvas, final Size size) {
        if (resizing) {
            final Shape shape = new Shape(0, 0);
            final int resizeMarkerSize = 10;
            shape.addVector(resizeMarkerSize, 0);
            shape.addVector(0, resizeMarkerSize);
            shape.addVector(-resizeMarkerSize, -resizeMarkerSize);
            final Color color = Toolkit.getColor(ColorsAndFonts.COLOR_SECONDARY3);
            final int height = size.getHeight();
            final int width = size.getWidth();
            canvas.drawSolidShape(shape, width - resizeMarkerSize, height, color);
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Shape.addVector()

        if (resizing) {
            final Shape shape = new Shape(0, 0);
            final int resizeMarkerSize = 10;
            shape.addVector(resizeMarkerSize, 0);
            shape.addVector(0, resizeMarkerSize);
            shape.addVector(-resizeMarkerSize, -resizeMarkerSize);
            final Color color = Toolkit.getColor(ColorsAndFonts.COLOR_SECONDARY3);
            final int height = size.getHeight();
            final int width = size.getWidth();
            canvas.drawSolidShape(shape, width - resizeMarkerSize, height, color);
            canvas.drawRectangle(0, 0, width, height, color);
View Full Code Here

Examples of org.apache.isis.viewer.dnd.drawing.Shape.addVector()

                }
                canvas.drawText(items[i].name, left, baseLine, color, style());
                if (items[i].action instanceof UserActionSet) {
                    Shape arrow;
                    arrow = new Shape(0, 0);
                    arrow.addVector(4, 4);
                    arrow.addVector(-4, 4);
                    canvas.drawSolidShape(arrow, width - 10, baseLine - 8, color);
                }
            }
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.