Adds additional information for deprecations as JavaDocs

This commit is contained in:
Christian Koop 2022-11-26 20:24:14 +01:00
parent bc56347727
commit bba5fa5f3e
No known key found for this signature in database
GPG Key ID: 89A8181384E010A3
2 changed files with 14 additions and 0 deletions

View File

@ -5,6 +5,9 @@ import org.bukkit.inventory.ItemStack;
import java.lang.reflect.Method;
/**
* @deprecated Horrible to maintain, and it gets worse with every new Minecraft version. Should be replaced with NMS
*/
@Deprecated
public enum MethodMapping {
MC_ITEM_STACK__GET_TAG("getTag", "getTag", "s", "t", "u"),

View File

@ -61,6 +61,7 @@ public class SongodaCore {
/**
* This is specific to the website api
* @deprecated Seems useless and will probably be removed in the near future
*/
@Deprecated
private static final int updaterVersion = 1;
@ -235,6 +236,9 @@ public class SongodaCore {
tasks.add(Bukkit.getScheduler().runTaskLaterAsynchronously(plugin, () -> update(info), 60L));
}
/**
* @deprecated Seems useless and will probably be replaced in the near future
*/
@Deprecated
private void update(PluginInfo plugin) {
try {
@ -293,6 +297,9 @@ public class SongodaCore {
return coreRevision;
}
/**
* @deprecated Use {@link #getVersion()} instead
*/
@Deprecated
public static String getCoreLibraryVersion() {
return SongodaCoreConstants.getCoreVersion();
@ -307,6 +314,10 @@ public class SongodaCore {
return -1;
}
/**
* @deprecated Seems useless and will probably be removed in the near future
*/
@Deprecated
public static int getUpdaterVersion() {
return updaterVersion;
}