1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

[CI skip] Deprecated two methods because the Research class will move

This commit is contained in:
TheBusyBiscuit 2020-05-09 10:48:02 +02:00
parent c3dbe8f34a
commit cf777126ba

View File

@ -49,6 +49,7 @@ public final class Slimefun {
* @param items
* the items to bind, not null
*/
@Deprecated
public static void registerResearch(Research research, ItemStack... items) {
for (ItemStack item : items) {
research.addItems(SlimefunItem.getByItem(item));
@ -57,6 +58,7 @@ public final class Slimefun {
research.register();
}
@Deprecated
public static void registerResearch(NamespacedKey key, int id, String name, int cost, ItemStack... items) {
registerResearch(new Research(key, id, name, cost), items);
}