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:
Hubry committed 2018-09-17 13:06:46 +02:00
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);
}