use of net.minecraft.world.MinecraftException in project MineFactoryReloaded by powercrystals.
the class WorldServerProxy method saveLevel.
@Override
protected /**
* Saves the chunks to disk.
*/
void saveLevel() throws MinecraftException {
ArrayList<String> q = new ArrayList<String>();
q.add("saveLevel");
q.addAll(Arrays.asList(ObfuscationReflectionHelper.remapFieldNames("net.minecraft.world.WorldServer", new String[] { "func_73042_a" })));
Method callable = ReflectionHelper.findMethod(World.class, this.proxiedWorld, q.toArray(new String[q.size()]));
try {
callable.invoke(this.proxiedWorld);
} catch (Throwable e) {
if (e instanceof MinecraftException)
throw (MinecraftException) e;
}
}
Aggregations