mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 11:45:51 +00:00
Explicitly declare type arguments
This commit is contained in:
parent
91150e53a6
commit
55731ef532
@ -26,8 +26,8 @@ import me.mrCookieSlime.Slimefun.Setup.Messages;
|
|||||||
*/
|
*/
|
||||||
public class Slimefun {
|
public class Slimefun {
|
||||||
|
|
||||||
public static Map<Integer, List<GuideHandler>> guide_handlers = new HashMap<>();
|
public static Map<Integer, List<GuideHandler>> guide_handlers = new HashMap<Integer, List<GuideHandler>>();
|
||||||
public static List<GuideHandler> guide_handlers2 = new ArrayList<>();
|
public static List<GuideHandler> guide_handlers2 = new ArrayList<GuideHandler>();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instance of the GPSNetwork.
|
* Instance of the GPSNetwork.
|
||||||
@ -40,10 +40,10 @@ public class Slimefun {
|
|||||||
/**
|
/**
|
||||||
* Lists all the registered categories.
|
* Lists all the registered categories.
|
||||||
*/
|
*/
|
||||||
public static List<Category> current_categories = new ArrayList<>();
|
public static List<Category> current_categories = new ArrayList<Category>();
|
||||||
|
|
||||||
public static void registerGuideHandler(GuideHandler handler) {
|
public static void registerGuideHandler(GuideHandler handler) {
|
||||||
List<GuideHandler> handlers = new ArrayList<>();
|
List<GuideHandler> handlers = new ArrayList<GuideHandler>();
|
||||||
if (guide_handlers.containsKey(handler.getTier())) handlers = guide_handlers.get(handler.getTier());
|
if (guide_handlers.containsKey(handler.getTier())) handlers = guide_handlers.get(handler.getTier());
|
||||||
handlers.add(handler);
|
handlers.add(handler);
|
||||||
guide_handlers.put(handler.getTier(), handlers);
|
guide_handlers.put(handler.getTier(), handlers);
|
||||||
@ -258,7 +258,7 @@ public class Slimefun {
|
|||||||
* @return the list of all the IDs of the enabled items.
|
* @return the list of all the IDs of the enabled items.
|
||||||
*/
|
*/
|
||||||
public static List<String> listIDs() {
|
public static List<String> listIDs() {
|
||||||
List<String> ids = new ArrayList<>();
|
List<String> ids = new ArrayList<String>();
|
||||||
for (SlimefunItem item: SlimefunItem.list()) {
|
for (SlimefunItem item: SlimefunItem.list()) {
|
||||||
ids.add(item.getName());
|
ids.add(item.getName());
|
||||||
}
|
}
|
||||||
@ -272,7 +272,7 @@ public class Slimefun {
|
|||||||
* @see #current_categories
|
* @see #current_categories
|
||||||
*/
|
*/
|
||||||
public static List<ItemStack> listCategories() {
|
public static List<ItemStack> listCategories() {
|
||||||
List<ItemStack> items = new ArrayList<>();
|
List<ItemStack> items = new ArrayList<ItemStack>();
|
||||||
for (Category c: Category.list()) {
|
for (Category c: Category.list()) {
|
||||||
items.add(c.getItem());
|
items.add(c.getItem());
|
||||||
}
|
}
|
||||||
@ -347,6 +347,6 @@ public class Slimefun {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static List<GuideHandler> getGuideHandlers(int tier) {
|
public static List<GuideHandler> getGuideHandlers(int tier) {
|
||||||
return guide_handlers.containsKey(tier) ? guide_handlers.get(tier): new ArrayList<>();
|
return guide_handlers.containsKey(tier) ? guide_handlers.get(tier): new ArrayList<GuideHandler>();
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user