Added the ability to add variants to the item panel

This commit is contained in:
Chicken-Bones committed 2015-09-01 10:57:43 +10:00
1 parent 0b54b83728
commit e523e6c4e8
3 files changed
+19 -1

No files matched your search

+9
View File
@@ -253,4 +253,13 @@ public class API
public static void addSortOption(String name, Comparator<ItemStack> comparator) {
ItemSorter.add(name, comparator);
}
/**
* Adds an additional item list entry for an item, sorted after the rest of the items are found through the normal process
* @param item The item to add the variant for
* @param variant The stack to appear in the item panel
*/
public static void addItemVariant(Item item, ItemStack variant) {
ItemInfo.itemVariants.put(item, variant);
}
}