mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-04-02 09:46:23 +02:00
130 lines
6.5 KiB
Java
130 lines
6.5 KiB
Java
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
// PlotSquared - A plot manager and world generator for the Bukkit API /
|
|
// Copyright (c) 2014 IntellectualSites/IntellectualCrafters /
|
|
// /
|
|
// 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. /
|
|
// /
|
|
// 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. /
|
|
// /
|
|
// You should have received a copy of the GNU General Public License /
|
|
// along with this program; if not, write to the Free Software Foundation, /
|
|
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA /
|
|
// /
|
|
// You can contact us via: support@intellectualsites.com /
|
|
////////////////////////////////////////////////////////////////////////////////////////////////////
|
|
|
|
package com.intellectualcrafters.plot.object;
|
|
|
|
import java.util.ArrayList;
|
|
|
|
<<<<<<< Updated upstream
|
|
import org.bukkit.Location;
|
|
=======
|
|
>>>>>>> Stashed changes
|
|
import org.bukkit.World;
|
|
import org.bukkit.block.Biome;
|
|
|
|
public abstract class PlotManager {
|
|
|
|
/*
|
|
* Plot locations (methods with Abs in them will not need to consider mega
|
|
* plots)
|
|
*/
|
|
|
|
<<<<<<< Updated upstream
|
|
public abstract PlotId getPlotIdAbs(final PlotWorld plotworld, final Location loc);
|
|
|
|
public abstract PlotId getPlotId(final PlotWorld plotworld, final Location loc);
|
|
=======
|
|
public abstract PlotId getPlotIdAbs(final PlotWorld plotworld, final int x, final int y, final int z);
|
|
|
|
public abstract PlotId getPlotId(final PlotWorld plotworld, final int x, final int y, final int z);
|
|
>>>>>>> Stashed changes
|
|
|
|
// If you have a circular plot, just return the corner if it were a square
|
|
public abstract Location getPlotBottomLocAbs(final PlotWorld plotworld, final PlotId plotid);
|
|
|
|
// the same applies here
|
|
public abstract Location getPlotTopLocAbs(final PlotWorld plotworld, final PlotId plotid);
|
|
/*
|
|
* Plot clearing (return false if you do not support some method)
|
|
*/
|
|
<<<<<<< Updated upstream
|
|
public abstract boolean clearPlot(final World world, final PlotWorld plotworld, final Plot plot, boolean isDelete, Runnable whenDone);
|
|
|
|
public abstract boolean claimPlot(final World world, final PlotWorld plotworld, final Plot plot);
|
|
|
|
public abstract boolean unclaimPlot(final World world, final PlotWorld plotworld, final Plot plot);
|
|
|
|
public abstract Location getSignLoc(final World world, final PlotWorld plotworld, final Plot plot);
|
|
=======
|
|
public abstract boolean clearPlot(final PlotWorld plotworld, final Plot plot, boolean isDelete, Runnable whenDone);
|
|
|
|
public abstract boolean claimPlot(final PlotWorld plotworld, final Plot plot);
|
|
|
|
public abstract boolean unclaimPlot(final PlotWorld plotworld, final Plot plot);
|
|
|
|
public abstract Location getSignLoc(final PlotWorld plotworld, final Plot plot);
|
|
>>>>>>> Stashed changes
|
|
|
|
/*
|
|
* Plot set functions (return false if you do not support the specific set
|
|
* method)
|
|
*/
|
|
|
|
<<<<<<< Updated upstream
|
|
public abstract String[] getPlotComponents(final World world, final PlotWorld plotworld, final PlotId plotid);
|
|
|
|
public abstract boolean setComponent(final World world, final PlotWorld plotworld, final PlotId plotid, final String component, final PlotBlock[] blocks);
|
|
|
|
public abstract boolean setBiome(final World world, final Plot plot, final Biome biome);
|
|
=======
|
|
public abstract String[] getPlotComponents(final PlotWorld plotworld, final PlotId plotid);
|
|
|
|
public abstract boolean setComponent(final PlotWorld plotworld, final PlotId plotid, final String component, final PlotBlock[] blocks);
|
|
|
|
public abstract boolean setBiome(final Plot plot, final Biome biome);
|
|
>>>>>>> Stashed changes
|
|
|
|
/*
|
|
* PLOT MERGING (return false if your generator does not support plot
|
|
* merging)
|
|
*/
|
|
public abstract boolean createRoadEast(final PlotWorld plotworld, final Plot plot);
|
|
|
|
public abstract boolean createRoadSouth(final PlotWorld plotworld, final Plot plot);
|
|
|
|
public abstract boolean createRoadSouthEast(final PlotWorld plotworld, final Plot plot);
|
|
|
|
public abstract boolean removeRoadEast(final PlotWorld plotworld, final Plot plot);
|
|
|
|
public abstract boolean removeRoadSouth(final PlotWorld plotworld, final Plot plot);
|
|
|
|
public abstract boolean removeRoadSouthEast(final PlotWorld plotworld, final Plot plot);
|
|
|
|
<<<<<<< Updated upstream
|
|
public abstract boolean startPlotMerge(final World world, final PlotWorld plotworld, final ArrayList<PlotId> plotIds);
|
|
|
|
public abstract boolean startPlotUnlink(final World world, final PlotWorld plotworld, final ArrayList<PlotId> plotIds);
|
|
|
|
public abstract boolean finishPlotMerge(final World world, final PlotWorld plotworld, final ArrayList<PlotId> plotIds);
|
|
|
|
public abstract boolean finishPlotUnlink(final World world, final PlotWorld plotworld, final ArrayList<PlotId> plotIds);
|
|
=======
|
|
public abstract boolean startPlotMerge(final PlotWorld plotworld, final ArrayList<PlotId> plotIds);
|
|
|
|
public abstract boolean startPlotUnlink(final PlotWorld plotworld, final ArrayList<PlotId> plotIds);
|
|
|
|
public abstract boolean finishPlotMerge(final PlotWorld plotworld, final ArrayList<PlotId> plotIds);
|
|
|
|
public abstract boolean finishPlotUnlink(final PlotWorld plotworld, final ArrayList<PlotId> plotIds);
|
|
>>>>>>> Stashed changes
|
|
|
|
}
|