Javadocs/comments/deprecation

This commit is contained in:
dordsor21 2022-02-07 00:02:52 +00:00 committed by Jordan
parent e45b2ba288
commit 852c180bbd
5 changed files with 12 additions and 7 deletions

View File

@ -109,7 +109,7 @@ public interface PlotPlatform<P> extends LocaleHolder {
/**
* Gets the default maximum world height for the version of Minecraft that the server is running.
*
* @return maximum world height
* @return maximum world height (inclusive)
* @since TODO
*/
int versionMaxHeight();

View File

@ -67,7 +67,7 @@ public interface World<T> {
/**
* Get the max world height. Exclusive.
* Get the max world height. Inclusive.
*
* @since TODO
*/

View File

@ -141,10 +141,10 @@ public abstract class PlotArea {
private boolean homeAllowNonmember = false;
private BlockLoc nonmemberHome;
private BlockLoc defaultHome;
private int maxBuildHeight = PlotSquared.platform().versionMaxHeight();
private int minBuildHeight = PlotSquared.platform().versionMinHeight() + 1;
private int maxGenHeight = PlotSquared.platform().versionMaxHeight();
private int minGenHeight = PlotSquared.platform().versionMinHeight();
private int maxBuildHeight = PlotSquared.platform().versionMaxHeight() + 1; // Exclusive
private int minBuildHeight = PlotSquared.platform().versionMinHeight() + 1; // Inclusive
private int maxGenHeight = PlotSquared.platform().versionMaxHeight(); // Inclusive
private int minGenHeight = PlotSquared.platform().versionMinHeight(); // Inclusive
private GameMode gameMode = GameModes.CREATIVE;
private Map<String, PlotExpression> prices = new HashMap<>();
private List<String> schematics = new ArrayList<>();
@ -1365,7 +1365,7 @@ public abstract class PlotArea {
}
/**
* Get the maximum height players may build in. Inclusive.
* Get the maximum height players may build in. Exclusive.
*/
public int getMaxBuildHeight() {
return this.maxBuildHeight;

View File

@ -53,6 +53,9 @@ public class ScopedQueueCoordinator extends DelegateQueueCoordinator {
private final int dy;
private final int dz;
/**
* Create a new ScopedQueueCoordinator instance that delegates to a given QueueCoordinator. Locations are inclusive.
*/
public ScopedQueueCoordinator(@Nullable QueueCoordinator parent, @NonNull Location min, @NonNull Location max) {
super(parent);
this.min = min;

View File

@ -79,7 +79,9 @@ public abstract class WorldUtil {
* @param p2x Max X
* @param p2z Max Z
* @param biome Biome
* @deprecated use {@link WorldUtil#setBiome(PlotArea, int, int, int, int, BiomeType)}
*/
@Deprecated(forRemoval = true)
public static void setBiome(String world, int p1x, int p1z, int p2x, int p2z, BiomeType biome) {
BlockVector3 pos1 = BlockVector2.at(p1x, p1z).toBlockVector3();
BlockVector3 pos2 = BlockVector2.at(p2x, p2z).toBlockVector3(255);