2020-04-16 04:52:39 +02:00
|
|
|
/*
|
2022-06-15 20:17:17 +02:00
|
|
|
* PlotSquared, a land and world management plugin for Minecraft.
|
|
|
|
* Copyright (C) IntellectualSites <https://intellectualsites.com>
|
|
|
|
* Copyright (C) IntellectualSites team and contributors
|
2020-04-16 04:52:39 +02:00
|
|
|
*
|
2022-06-15 20:17:17 +02:00
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
2020-04-16 04:52:39 +02:00
|
|
|
*
|
2022-06-15 20:17:17 +02:00
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
2020-04-16 04:52:39 +02:00
|
|
|
*
|
2022-06-15 20:17:17 +02:00
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
2020-04-16 04:52:39 +02:00
|
|
|
*/
|
2020-04-15 21:26:54 +02:00
|
|
|
package com.plotsquared.core.util;
|
2015-02-22 14:12:32 +01:00
|
|
|
|
2020-04-15 21:26:54 +02:00
|
|
|
import com.plotsquared.core.generator.GeneratorWrapper;
|
|
|
|
import com.plotsquared.core.plot.PlotArea;
|
2020-06-02 18:28:14 +02:00
|
|
|
import com.plotsquared.core.setup.PlotAreaBuilder;
|
2018-08-10 17:01:10 +02:00
|
|
|
|
2016-06-02 17:38:47 +02:00
|
|
|
import java.util.HashMap;
|
|
|
|
|
2015-09-13 06:04:31 +02:00
|
|
|
public abstract class SetupUtils {
|
2018-08-10 17:01:10 +02:00
|
|
|
|
2016-02-10 19:59:51 +01:00
|
|
|
public static HashMap<String, GeneratorWrapper<?>> generators = new HashMap<>();
|
2022-05-16 14:21:43 +02:00
|
|
|
protected boolean loaded = false;
|
2018-08-10 17:01:10 +02:00
|
|
|
|
2022-01-24 21:46:01 +01:00
|
|
|
/**
|
|
|
|
* @since 6.1.0
|
|
|
|
*/
|
2021-09-07 15:47:37 +02:00
|
|
|
public abstract void updateGenerators(final boolean force);
|
2018-08-10 17:01:10 +02:00
|
|
|
|
2016-06-02 17:38:47 +02:00
|
|
|
public abstract String getGenerator(final PlotArea plotArea);
|
2018-08-10 17:01:10 +02:00
|
|
|
|
2020-06-02 18:28:14 +02:00
|
|
|
public abstract String setupWorld(final PlotAreaBuilder builder);
|
|
|
|
|
2017-03-23 01:10:29 +01:00
|
|
|
public abstract void unload(String world, boolean save);
|
2020-07-10 22:12:37 +02:00
|
|
|
|
2015-02-22 14:12:32 +01:00
|
|
|
}
|