mirror of
https://github.com/BlueMap-Minecraft/BlueMapAPI.git
synced 2024-11-14 22:35:30 +01:00
Code-style improvements, fixed typos and version push
This commit is contained in:
parent
7069a1cb95
commit
17cbf15f84
@ -1,4 +1,4 @@
|
||||
org.gradle.jvmargs=-Xmx3G
|
||||
org.gradle.daemon=false
|
||||
|
||||
apiVersion=1.3.0
|
||||
apiVersion=1.3.1
|
||||
|
@ -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}.
|
||||
|
@ -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.
|
||||
|
@ -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
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user