Code-style improvements, fixed typos and version push

This commit is contained in:
Blue (Lukas Rieger) 2020-10-04 00:11:25 +02:00
parent 7069a1cb95
commit 17cbf15f84
No known key found for this signature in database
GPG Key ID: 904C4995F9E1F800
5 changed files with 17 additions and 8 deletions

View File

@ -1,4 +1,4 @@
org.gradle.jvmargs=-Xmx3G
org.gradle.daemon=false
apiVersion=1.3.0
apiVersion=1.3.1

View File

@ -46,10 +46,10 @@ public abstract class BlueMapAPI {
private static BlueMapAPI instance;
@Deprecated
private static Collection<BlueMapAPIListener> listener = new ArrayList<>(2);
private static final Collection<BlueMapAPIListener> listener = new ArrayList<>(2);
private static Collection<Consumer<BlueMapAPI>> onEnableConsumers = new ArrayList<>(2);
private static Collection<Consumer<BlueMapAPI>> onDisableConsumers = new ArrayList<>(2);
private static final Collection<Consumer<BlueMapAPI>> onEnableConsumers = new ArrayList<>(2);
private static final Collection<Consumer<BlueMapAPI>> onDisableConsumers = new ArrayList<>(2);
/**
* Getter for the {@link RenderAPI}.

View File

@ -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.

View File

@ -118,7 +118,7 @@ public interface Marker {
void setLabel(String label);
/**
* Gets the link-adress of this {@link Marker}.<br>
* Gets the link-address of this {@link Marker}.<br>
* 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}.<br>
* Sets the link-address of this {@link Marker}.<br>
* 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 <code>null</code> to disable the link

View File

@ -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.
* <p>This is basically the default-state of the toggle-button from {@link #isToggleable()}. If this is <code>true</code> the markers of this marker set will initially be hidden and can be displayed using the toggle-button.</p>
@ -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.