Package libshapedraw.primitive

Examples of libshapedraw.primitive.ReadonlyVector3


        curDimension = null;
    }

    @Override
    public boolean onTickInGame(float partialTick, Minecraft minecraft) {
        ReadonlyVector3 playerCoords = getPlayerCoords();

        // obf: Minecraft.theWorld, Minecraft.thePlayer
        if (curWorld != minecraft.theWorld || curPlayer != minecraft.thePlayer) {
            // obf: Minecraft.theWorld
            curWorld = minecraft.theWorld;
View Full Code Here


        }
        final float blendEndpoint = getBlendEndpoint();

        // We can't use GL_LINE_STRIP in a single drawing session because each
        // line segment has its own style.
        ReadonlyVector3 pointA = it.next();
        ReadonlyVector3 pointB;
        int lineNum = 0;
        while (it.hasNext() && (renderCap < 0 || lineNum < renderCap)) {
            pointB = it.next();
            float percent = lineNum / blendEndpoint;
View Full Code Here

        onPreRender(mc);
        final boolean absolute = !isRelativeToOrigin();
        if (absolute && transforms == null) {
            renderShape(mc);
        } else {
            final ReadonlyVector3 origin = getOriginReadonly();
            if (origin == null) {
                return;
            }
            GL11.glPushMatrix();
            GL11.glTranslated(origin.getX(), origin.getY(), origin.getZ());
            if (transforms != null) {
                for (ShapeTransform t : transforms) {
                    if (t != null) {
                        t.preRender();
                    }
                }
            }
            if (absolute) {
                GL11.glTranslated(-origin.getX(), -origin.getY(), -origin.getZ());
            }
            renderShape(mc);
            GL11.glPopMatrix();
        }
        onPostRender(mc);
View Full Code Here

        curDimension = null;
    }

    @Override
    public boolean onTickInGame(float partialTick, Minecraft minecraft) {
        ReadonlyVector3 playerCoords = getPlayerCoords();

        // obf: Minecraft.theWorld, Minecraft.thePlayer
        if (curWorld != minecraft.e || curPlayer != minecraft.g) {
            // obf: Minecraft.theWorld
            curWorld = minecraft.e;
View Full Code Here

TOP

Related Classes of libshapedraw.primitive.ReadonlyVector3

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.