Add BukkitForge handler - doesn't work right due to BukkitForge API bugs

This commit is contained in:
Mike Primm 2013-03-01 23:51:45 -06:00
parent 8dc1712870
commit eff44320fa
5 changed files with 124 additions and 9 deletions

View file

@ -45,7 +45,17 @@ public class BukkitVersionHelperMCPC extends BukkitVersionHelperGeneric {
nbttagintarray = getNMSClass("bw");
/* tileentity */
nms_tileentity = getNMSClass("any");
/* Get unload queue classes */
longhashset = getOBCClassNoFail("org.bukkit.craftbukkit.util.LongHashSet");
if(longhashset != null) {
lhs_containskey = getMethod(longhashset, new String[] { "contains" }, new Class[] { int.class, int.class });
}
else {
longhashset = getOBCClass("org.bukkit.craftbukkit.util.LongHashset");
lhs_containskey = getMethod(longhashset, new String[] { "containsKey" }, new Class[] { int.class, int.class });
}
/** Set up NMS fields **/
/* biomebase */
biomebaselist = getField(biomebase, new String[] { "a" }, biomebasearray);