mirror of
https://github.com/songoda/SongodaCore.git
synced 2024-11-30 05:53:35 +01:00
Adds additional information for deprecations as JavaDocs
This commit is contained in:
parent
bc56347727
commit
bba5fa5f3e
@ -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"),
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user