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:
parent
c3dbe8f34a
commit
cf777126ba
@ -49,6 +49,7 @@ public final class Slimefun {
|
|||||||
* @param items
|
* @param items
|
||||||
* the items to bind, not null
|
* the items to bind, not null
|
||||||
*/
|
*/
|
||||||
|
@Deprecated
|
||||||
public static void registerResearch(Research research, ItemStack... items) {
|
public static void registerResearch(Research research, ItemStack... items) {
|
||||||
for (ItemStack item : items) {
|
for (ItemStack item : items) {
|
||||||
research.addItems(SlimefunItem.getByItem(item));
|
research.addItems(SlimefunItem.getByItem(item));
|
||||||
@ -57,6 +58,7 @@ public final class Slimefun {
|
|||||||
research.register();
|
research.register();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
public static void registerResearch(NamespacedKey key, int id, String name, int cost, ItemStack... items) {
|
public static void registerResearch(NamespacedKey key, int id, String name, int cost, ItemStack... items) {
|
||||||
registerResearch(new Research(key, id, name, cost), items);
|
registerResearch(new Research(key, id, name, cost), items);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user