Package cn.lanink.gamecore.utils
Class ItemInfoUtils
java.lang.Object
cn.lanink.gamecore.utils.ItemInfoUtils
- Author:
- LT_Name
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ArrayList<ItemInfoUtils.ItemInfo>private static final ItemInfoUtils.ItemInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAllMetaDamagesFromAnId(int id) static StringgetImgPathById(int id, int damage) static ItemInfoUtils.ItemInfogetItemInfoById(int id) static ItemInfoUtils.ItemInfogetItemInfoById(int id, int damage) static StringgetNameChineseById(int id) static StringgetNameChineseById(int id, int damage) static StringgetNameEnglishById(int id) static StringgetNameEnglishById(int id, int damage) static voidregisterCustomItem(int id, int damage, String imagePath, String nameChinese, String nameEnglish) 注册 CustomItemstatic booleanregisterCustomItemFromMap(@NonNull Map<String, Object> map) static booleanregisterCustomItemsFromMaps(@NonNull List<Map<String, Object>> maps)
-
Field Details
-
UNKNOWN
-
ITEM_INFOS
-
-
Constructor Details
-
ItemInfoUtils
private ItemInfoUtils()
-
-
Method Details
-
registerCustomItemsFromMaps
-
registerCustomItem
public static void registerCustomItem(int id, int damage, String imagePath, String nameChinese, String nameEnglish) 注册 CustomItem -
registerCustomItemFromMap
-
getItemInfoById
-
getItemInfoById
-
getNameChineseById
-
getNameChineseById
-
getNameEnglishById
-
getNameEnglishById
-
getImgPathById
-
getAllMetaDamagesFromAnId
-