Add BukkitForge handler - doesn't work right due to BukkitForge API bugs
This commit is contained in:
parent
8dc1712870
commit
eff44320fa
5 changed files with 124 additions and 9 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue