mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-20 20:22:33 +00:00
Improve handling of brews in JEI
* Add subtype interpreters to make looking up specific brew recipes less annoying * Add blood pendants and incense sticks to the brew recipe wrapper * Add locking of the other ingredient, so that when an item is focused, the other ingredient does not change to the items that don't fit (eg. you looked up the flask of fleetfeet, the input no longer swaps between vials and flasks)
This commit is contained in:
1 parent
80aea6f7be
commit
3bf7e07546
4 files changed
+50
-13
No files matched your search
@@ -149,6 +149,11 @@ public abstract class ItemBrewBase extends ItemMod implements IBrewItem {
|
||||
ItemNBTHelper.setString(stack, TAG_BREW_KEY, brew);
|
||||
}
|
||||
|
||||
@Nonnull
|
||||
public static String getSubtype(ItemStack stack) {
|
||||
return stack.hasTagCompound() ? ItemNBTHelper.getString(stack, TAG_BREW_KEY, "none") : "none";
|
||||
}
|
||||
|
||||
public int getSwigsLeft(ItemStack stack) {
|
||||
return ItemNBTHelper.getInt(stack, TAG_SWIGS_LEFT, swigs);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user