Package fr.neatmonster.nocheatplus.utilities

Examples of fr.neatmonster.nocheatplus.utilities.FakeBlockCache.cleanup()


        }
        if (rt.getStepsDone() > 4) {
            TestRayTracing.doFail("Expect less than 4 steps for moving straight through a block of air.", coords);
        }
        rt.cleanup();
        bc.cleanup();
    }
   
    @Test
    public void testThroughOneBlock() {
        FakeBlockCache bc = new FakeBlockCache();
View Full Code Here


           
            // TODO: More of each and other... + generic set-ups?
        };
        TestRayTracing.runCoordinates(rt, setups, true, false, 3.0, true);
        rt.cleanup();
        bc.cleanup();
    }
   
    /**
     * Moving diagonally through an "empty corner", seen from above:<br>
     * ox<br>
 
View Full Code Here

            {11.4, 70.0, 10.6, 10.6, 70.0, 11.4},
            {11.5, 70.0, 10.5, 10.5, 70.0, 11.5},
        };
        TestRayTracing.runCoordinates(rt, setups, true, false, 3.0, true);
        rt.cleanup();
        bc.cleanup();
    }
   
    @Test
    public void testGround() {
        FakeBlockCache bc = new FakeBlockCache();
View Full Code Here

            {1.3, 66.0, 2.43, 5.25, 65.9, 7.12},
            {1.3, 65.4, 2.43, 1.3, 65.4, 2.43}, // No distance.
        };
        TestRayTracing.runCoordinates(rt, shouldCollide, true, false, 3.0, true);
        rt.cleanup();
        bc.cleanup();
    }
   
    @Test
    public void testGroundSteps() {
        FakeBlockCache bc = new FakeBlockCache();
View Full Code Here

            {1.3, 65.5, 2.43, 5.25, 65.4, 7.12},
            {1.3, 65.4, 2.43, 1.3, 65.4, 2.43}, // No distance.
        };
        TestRayTracing.runCoordinates(rt, shouldCollide, true, false, 3.0, true);
        rt.cleanup();
        bc.cleanup();
    }
   
}
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.