Java Code Examples for net.minecraft.server.MinecraftServer#isDedicatedServer()
The following examples show how to use
net.minecraft.server.MinecraftServer#isDedicatedServer() .
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: ReflectionUtil.java From NOVA-Core with GNU Lesser General Public License v3.0 | 5 votes |
public static File getWorldDirectory(MinecraftServer server) { if (server.isDedicatedServer()) { return server.getFile("world"); } else { File worldsDir = getAnvilFile(server); if (worldsDir == null) { return null; } return new File(worldsDir, server.getFolderName()); } }
Example 2
Source File: ReflectionUtil.java From NOVA-Core with GNU Lesser General Public License v3.0 | 5 votes |
public static File getWorldDirectory(MinecraftServer server) { if (server.isDedicatedServer()) { return server.getFile("world"); } else { File worldsDir = getAnvilFile(server); if (worldsDir == null) { return null; } return new File(worldsDir, server.getFolderName()); } }
Example 3
Source File: ReflectionUtil.java From NOVA-Core with GNU Lesser General Public License v3.0 | 5 votes |
public static File getWorldDirectory(MinecraftServer server) { if (server.isDedicatedServer()) { return server.getFile("world"); } else { File worldsDir = getAnvilFile(server); if (worldsDir == null) { return null; } return new File(worldsDir, server.getFolderName()); } }