diff --git a/gradle.properties b/gradle.properties index e855ebd..1eefcb8 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,4 +1,4 @@ org.gradle.jvmargs=-Xmx3G org.gradle.daemon=false -apiVersion=1.3.0 +apiVersion=1.3.1 diff --git a/src/main/java/de/bluecolored/bluemap/api/BlueMapAPI.java b/src/main/java/de/bluecolored/bluemap/api/BlueMapAPI.java index 148d941..9399da9 100644 --- a/src/main/java/de/bluecolored/bluemap/api/BlueMapAPI.java +++ b/src/main/java/de/bluecolored/bluemap/api/BlueMapAPI.java @@ -46,10 +46,10 @@ public abstract class BlueMapAPI { private static BlueMapAPI instance; @Deprecated - private static Collection listener = new ArrayList<>(2); + private static final Collection listener = new ArrayList<>(2); - private static Collection> onEnableConsumers = new ArrayList<>(2); - private static Collection> onDisableConsumers = new ArrayList<>(2); + private static final Collection> onEnableConsumers = new ArrayList<>(2); + private static final Collection> onDisableConsumers = new ArrayList<>(2); /** * Getter for the {@link RenderAPI}. diff --git a/src/main/java/de/bluecolored/bluemap/api/BlueMapAPIListener.java b/src/main/java/de/bluecolored/bluemap/api/BlueMapAPIListener.java index 3be4c88..3a85102 100644 --- a/src/main/java/de/bluecolored/bluemap/api/BlueMapAPIListener.java +++ b/src/main/java/de/bluecolored/bluemap/api/BlueMapAPIListener.java @@ -24,6 +24,8 @@ */ package de.bluecolored.bluemap.api; +import java.util.function.Consumer; + /** * @deprecated Implementing {@link BlueMapAPIListener} can cause a ClassNotFoundException when you soft-depend on BlueMap and your plugin/mod gets used without BlueMap. * Use {@link BlueMapAPI#onEnable(Consumer)} and {@link BlueMapAPI#onDisable(Consumer)} instead. diff --git a/src/main/java/de/bluecolored/bluemap/api/marker/Marker.java b/src/main/java/de/bluecolored/bluemap/api/marker/Marker.java index a3238b0..52160bc 100644 --- a/src/main/java/de/bluecolored/bluemap/api/marker/Marker.java +++ b/src/main/java/de/bluecolored/bluemap/api/marker/Marker.java @@ -118,7 +118,7 @@ public interface Marker { void setLabel(String label); /** - * Gets the link-adress of this {@link Marker}.
+ * Gets the link-address of this {@link Marker}.
* If a link is present, this link will be followed when the user clicks on the marker in the web-app. * * @return the {@link Optional} link @@ -133,7 +133,7 @@ public interface Marker { boolean isNewTab(); /** - * Sets the link-adress of this {@link Marker}.
+ * Sets the link-address of this {@link Marker}.
* If a link is present, this link will be followed when the user clicks on the marker in the web-app. * * @param link the link, or null to disable the link diff --git a/src/main/java/de/bluecolored/bluemap/api/marker/MarkerSet.java b/src/main/java/de/bluecolored/bluemap/api/marker/MarkerSet.java index 148e776..fa3a20f 100644 --- a/src/main/java/de/bluecolored/bluemap/api/marker/MarkerSet.java +++ b/src/main/java/de/bluecolored/bluemap/api/marker/MarkerSet.java @@ -72,7 +72,14 @@ public interface MarkerSet { * @param toggleable whether this {@link MarkerSet} should be toggleable */ void setToggleable(boolean toggleable); - + + /** + * @deprecated method name has a typo, use {@link #isDefaultHidden()} instead. + */ + default boolean isDefautHidden() { + return isDefaultHidden(); + } + /** * Checks if this {@link MarkerSet} is hidden by default. *

This is basically the default-state of the toggle-button from {@link #isToggleable()}. If this is true the markers of this marker set will initially be hidden and can be displayed using the toggle-button.

@@ -80,7 +87,7 @@ public interface MarkerSet { * @return whether this {@link MarkerSet} is hidden by default * @see #isToggleable() */ - boolean isDefautHidden(); + boolean isDefaultHidden(); /** * Sets if this {@link MarkerSet} is hidden by default.