Exemple #1
0
  @Override
  public WorldCreationSettings getCreationSettings() {
    WorldProperties properties = this.getProperties();

    // Create based on WorldProperties
    WorldSettings settings = new WorldSettings(this.worldInfo);
    IMixinWorldSettings mixin = (IMixinWorldSettings) (Object) settings;
    mixin.setDimensionType(properties.getDimensionType());
    mixin.setGeneratorSettings(properties.getGeneratorSettings());
    mixin.setGeneratorModifiers(properties.getGeneratorModifiers());
    mixin.setEnabled(true);
    mixin.setKeepSpawnLoaded(this.keepSpawnLoaded);
    mixin.setLoadOnStartup(properties.loadOnStartup());

    return (WorldCreationSettings) (Object) settings;
  }