Improve Recipe Badge (#909)

This commit is contained in:
slprime authored and GitHub committed 2026-04-06 20:39:41 +03:00
1 parent f4601e7eed
commit eb58e1dabc
3 files changed
+152 -88

No files matched your search

@@ -13,6 +13,7 @@ import net.minecraftforge.oredict.OreDictionary;
import codechicken.nei.api.ItemFilter;
import codechicken.nei.api.ItemInfo;
import codechicken.nei.recipe.Badge;
import codechicken.nei.recipe.GuiRecipe;
import codechicken.nei.recipe.StackInfo;
@@ -86,6 +87,10 @@ public class PositionedStack {
for (ItemStack item : items) if (item.stackSize > i) item.stackSize = i;
}
public List<Badge> getBadges() {
return null;
}
public String getCustomBadge() {
return null;
}
@@ -94,6 +99,10 @@ public class PositionedStack {
return this.chance;
}
public void setChance(int chance) {
this.chance = chance;
}
public PositionedStack copy() {
PositionedStack pStack = new PositionedStack(
Arrays.stream(this.items).map(ItemStack::copy).toArray(ItemStack[]::new),