Examples of WorldSettings


Examples of com.khorn.terraincontrol.configuration.WorldSettings

            return true;
        }

        String worldName = args.get(0);
        File settingsFolder = plugin.getWorldSettingsFolder(worldName);
        new WorldSettings(settingsFolder, new BukkitWorld(worldName), true);

        sender.sendMessage(MESSAGE_COLOR + "Done!");
        return true;
    }
View Full Code Here

Examples of com.khorn.terraincontrol.configuration.WorldSettings

        // you will get a java.lang.IllegalArgumentException when adding biomes
        CraftBlock.biomeBaseToBiome(BiomeBase.OCEAN);

        // Load settings
        File baseFolder = getWorldSettingsFolder(worldName);
        WorldSettings configs = new WorldSettings(baseFolder, localWorld, false);
        localWorld.setSettings(configs);

        // Add the world to the to-do list
        this.notInitedWorlds.put(worldName, localWorld);
View Full Code Here

Examples of com.khorn.terraincontrol.configuration.WorldSettings

            if (!worldDirectory.mkdirs())
                System.out.println("TerrainControl: cant create folder " + worldDirectory.getAbsolutePath());
        }

        this.worldTC = new ForgeWorld(world.getSaveHandler().getWorldDirectoryName());
        WorldSettings config = new WorldSettings(worldDirectory, worldTC, false);
        this.worldTC.Init(world, config);

        Class<? extends BiomeGenerator> biomeGenClass = worldTC.getConfigs().getWorldConfig().biomeMode;
        BiomeGenerator biomeManager = TerrainControl.getBiomeModeManager().createCached(biomeGenClass, worldTC);
        WorldChunkManager chunkManager = createWorldChunkManager(worldTC, biomeManager);
View Full Code Here

Examples of com.khorn.terraincontrol.configuration.WorldSettings

                    WorldClient worldMC = FMLClientHandler.instance().getClient().theWorld;

                    DataInputStream wrappedStream = new DataInputStream(new ByteBufInputStream(stream));
                    String worldName = ConfigFile.readStringFromStream(wrappedStream);
                    ForgeWorld worldTC = new ForgeWorld(worldName);
                    WorldSettings config = new WorldSettings(wrappedStream, worldTC);
                    wrappedStream.close();

                    worldTC.InitM(worldMC, config);
                    TerrainControl.log(LogMarker.INFO, Arrays.toString(stream.array()));
                }
View Full Code Here

Examples of net.minecraft.src.WorldSettings

    private void convertMapFormat(String par1Str, String par2Str)
    {
        loadingScreen.printText((new StringBuilder()).append("Converting World to ").append(saveLoader.getFormatName()).toString());
        loadingScreen.displayLoadingString("This may take a while :)");
        saveLoader.convertMapFormat(par1Str, loadingScreen);
        startWorld(par1Str, par2Str, new WorldSettings(0L, 0, true, false, WorldType.DEFAULT));
    }
View Full Code Here

Examples of net.minecraft.world.WorldSettings

    return world.getWorldInfo().getWorldName();
  }

  private static WorldSettings getPar4WorldSettings(World world) {
    // TODO: reflect to avoid triggering overridden methods?
    return new WorldSettings(world.getWorldInfo());
  }
View Full Code Here

Examples of net.minecraft.world.WorldSettings

    return world.getWorldInfo().getWorldName();
  }

  private static WorldSettings getPar4WorldSettings(World world) {
    // TODO: reflect to avoid triggering overridden methods?
    return new WorldSettings(world.getWorldInfo());
  }
View Full Code Here

Examples of net.minecraft.world.WorldSettings

    return world.getWorldInfo().getWorldName();
  }

  private static WorldSettings getWorldSettings(World world) {

    return new WorldSettings(world.getWorldInfo());
  }
View Full Code Here

Examples of net.minecraft.world.WorldSettings

    return world.getWorldInfo().getWorldName();
  }

  private static WorldSettings getWorldSettings(World world) {

    return new WorldSettings(world.getWorldInfo());
  }
View Full Code Here

Examples of net.minecraft.world.WorldSettings

            System.err.println("Cannot Hotload Dim: " + e.getMessage());
            return; // If a provider hasn't been registered then we can't hotload the dim
        }
        MinecraftServer mcServer = overworld.func_73046_m();
        ISaveHandler savehandler = overworld.getSaveHandler();
        WorldSettings worldSettings = new WorldSettings(overworld.getWorldInfo());

        WorldServer world = (dim == 0 ? overworld : new WorldServerMulti(mcServer, savehandler, overworld.getWorldInfo().getWorldName(), dim, worldSettings, overworld, mcServer.theProfiler));
        world.addWorldAccess(new WorldManager(mcServer, world));
        MinecraftForge.EVENT_BUS.post(new WorldEvent.Load(world));
        if (!mcServer.isSinglePlayer())
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.