Clean up warnings

This commit is contained in:
Mike Primm 2011-06-13 22:05:14 -05:00
parent 1d069f7fa7
commit 659ddc8204
14 changed files with 19 additions and 22 deletions

View file

@ -165,6 +165,7 @@ public class MapChunkCache {
if(!initialized) {
try {
@SuppressWarnings("rawtypes")
Class c = Class.forName("net.minecraft.server.Chunk");
getchunkdata = c.getDeclaredMethod("a", new Class[] { byte[].class, int.class,
int.class, int.class, int.class, int.class, int.class, int.class });
@ -177,6 +178,7 @@ public class MapChunkCache {
}
/* Get CraftWorld.popPreservedChunk(x,z) - reduces memory bloat from map traversals (optional) */
try {
@SuppressWarnings("rawtypes")
Class c = Class.forName("org.bukkit.craftbukkit.CraftWorld");
poppreservedchunk = c.getDeclaredMethod("popPreservedChunk", new Class[] { int.class, int.class });
} catch (ClassNotFoundException cnfx) {