Java Code Examples for net.minecraft.world.MinecraftException#printStackTrace()
The following examples show how to use
net.minecraft.world.MinecraftException#printStackTrace() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: CraftWorld.java From Kettle with GNU General Public License v3.0 | 5 votes |
public void save(boolean forceSave) { this.server.checkSaveState(); try { boolean oldSave = world.disableLevelSaving; world.disableLevelSaving = false; world.saveAllChunks(forceSave, null); world.disableLevelSaving = oldSave; } catch (MinecraftException ex) { ex.printStackTrace(); } }
Example 2
Source File: ServerShutdownThread.java From Kettle with GNU General Public License v3.0 | 5 votes |
@Override public void run() { try { server.stopServer(); } catch (MinecraftException ex) { ex.printStackTrace(); } /*finally { try { server.reader.getTerminal().restore(); } catch (Exception e) { } }*/ }
Example 3
Source File: ServerShutdownThread.java From Thermos with GNU General Public License v3.0 | 5 votes |
@Override public void run() { try { server.stopServer(); } catch (MinecraftException ex) { ex.printStackTrace(); } finally { try { server.reader.getTerminal().restore(); } catch (Exception e) { } } }