Examples of assertCountsEqual()


Examples of libshapedraw.MockMinecraftAccess.assertCountsEqual()

            shape.setLineStyle(Color.WHITE.copy(), 1.0F, twice);
            assertEquals(twice, shape.isVisibleThroughTerrain());

            mc.reset();
            shape.render(mc);
            mc.assertCountsEqual(3, 16, twice);
            shape.render(mc);
            shape.render(mc);
            shape.render(mc);
            mc.assertCountsEqual(12, 64, twice);
        }
View Full Code Here

Examples of libshapedraw.MockMinecraftAccess.assertCountsEqual()

            shape.render(mc);
            mc.assertCountsEqual(3, 16, twice);
            shape.render(mc);
            shape.render(mc);
            shape.render(mc);
            mc.assertCountsEqual(12, 64, twice);
        }
    }
}
View Full Code Here

Examples of libshapedraw.MockMinecraftAccess.assertCountsEqual()

            shape.setLineStyle(Color.RED.copy(), 2.0F, twice);
            assertEquals(twice, shape.isVisibleThroughTerrain());

            mc.reset();
            shape.render(mc);
            mc.assertCountsEqual(1, 2, twice);
            shape.render(mc);
            shape.render(mc);
            shape.render(mc);
            mc.assertCountsEqual(4, 8, twice);
View Full Code Here

Examples of libshapedraw.MockMinecraftAccess.assertCountsEqual()

            shape.render(mc);
            mc.assertCountsEqual(1, 2, twice);
            shape.render(mc);
            shape.render(mc);
            shape.render(mc);
            mc.assertCountsEqual(4, 8, twice);

            // revert to the default line style
            shape.setLineStyle(null);
            assertSame(LineStyle.DEFAULT, shape.getEffectiveLineStyle());
            assertTrue(shape.isVisibleThroughTerrain());
View Full Code Here

Examples of libshapedraw.MockMinecraftAccess.assertCountsEqual()

            shape.setLineStyle(null);
            assertSame(LineStyle.DEFAULT, shape.getEffectiveLineStyle());
            assertTrue(shape.isVisibleThroughTerrain());
            mc.reset();
            shape.render(mc);
            mc.assertCountsEqual(1, 2, true);
            shape.render(mc);
            shape.render(mc);
            shape.render(mc);
            mc.assertCountsEqual(4, 8, true);
        }
View Full Code Here

Examples of libshapedraw.MockMinecraftAccess.assertCountsEqual()

            shape.render(mc);
            mc.assertCountsEqual(1, 2, true);
            shape.render(mc);
            shape.render(mc);
            shape.render(mc);
            mc.assertCountsEqual(4, 8, true);
        }
    }
}
View Full Code Here

Examples of libshapedraw.MockMinecraftAccess.assertCountsEqual()

            assertEquals(seeThru, shape.isVisibleThroughTerrain());

            // No points == nothing to render
            mc.reset();
            shape.render(mc);
            mc.assertCountsEqual(0, 0, seeThru);
            shape.render(mc);
            shape.render(mc);
            shape.render(mc);
            mc.assertCountsEqual(0, 0, seeThru);
   
View Full Code Here

Examples of libshapedraw.MockMinecraftAccess.assertCountsEqual()

            shape.render(mc);
            mc.assertCountsEqual(0, 0, seeThru);
            shape.render(mc);
            shape.render(mc);
            shape.render(mc);
            mc.assertCountsEqual(0, 0, seeThru);
   
            // Only one point makes no lines
            arr.add(new Vector3(0.0, 5.5, -12.5));
            mc.reset();
            shape.render(mc); // deferred to WireframeLines
View Full Code Here

Examples of libshapedraw.MockMinecraftAccess.assertCountsEqual()

   
            // Only one point makes no lines
            arr.add(new Vector3(0.0, 5.5, -12.5));
            mc.reset();
            shape.render(mc); // deferred to WireframeLines
            mc.assertCountsEqual(1, 1, seeThru);
            shape.render(mc);
            shape.render(mc);
            shape.render(mc);
            mc.assertCountsEqual(4, 4, seeThru);
   
View Full Code Here

Examples of libshapedraw.MockMinecraftAccess.assertCountsEqual()

            shape.render(mc); // deferred to WireframeLines
            mc.assertCountsEqual(1, 1, seeThru);
            shape.render(mc);
            shape.render(mc);
            shape.render(mc);
            mc.assertCountsEqual(4, 4, seeThru);
   
            // Two points make one line
            arr.add(new Vector3(7.0, 5.5, -12.5));
            mc.reset();
            shape.render(mc);
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.