mirror of
https://github.com/Sollace/Unicopia.git
synced 2025-01-31 19:16:44 +01:00
Fix arrow texture in emi recipes
This commit is contained in:
parent
2369445529
commit
fa83842689
3 changed files with 5 additions and 1 deletions
|
@ -19,6 +19,7 @@ import com.minelittlepony.unicopia.item.group.MultiItem;
|
|||
import dev.emi.emi.api.EmiPlugin;
|
||||
import dev.emi.emi.api.EmiRegistry;
|
||||
import dev.emi.emi.api.recipe.EmiRecipeCategory;
|
||||
import dev.emi.emi.api.render.EmiTexture;
|
||||
import dev.emi.emi.api.stack.Comparison;
|
||||
import dev.emi.emi.api.stack.EmiStack;
|
||||
import net.minecraft.item.ItemStack;
|
||||
|
@ -30,6 +31,9 @@ public class Main implements EmiPlugin {
|
|||
static final EmiRecipeCategory SPELL_BOOK_CATEGORY = new EmiRecipeCategory(Unicopia.id("spellbook"), SPELL_BOOK_STATION, SPELL_BOOK_STATION);
|
||||
static final Comparison COMPARING_BOTH = Comparison.builder().nbt(true).build();
|
||||
|
||||
static final Identifier WIDGETS = Unicopia.id("textures/gui/widgets.png");
|
||||
static final EmiTexture EMPTY_ARROW = new EmiTexture(WIDGETS, 44, 0, 24, 17);
|
||||
|
||||
@Override
|
||||
public void register(EmiRegistry registry) {
|
||||
registry.addCategory(SPELL_BOOK_CATEGORY);
|
||||
|
|
|
@ -69,7 +69,7 @@ class SpellbookEmiRecipe implements EmiRecipe, SpellbookRecipe.CraftingTreeBuild
|
|||
@Override
|
||||
public void addWidgets(WidgetHolder widgets) {
|
||||
widgets.addTexture(SpellbookScreen.TEXTURE, 0, 0, getDisplayWidth(), getDisplayHeight(), 50, 50, 128, 128, 512, 256);
|
||||
widgets.addTexture(EmiTexture.EMPTY_ARROW, 160, 65);
|
||||
widgets.addTexture(Main.EMPTY_ARROW, 160, 65);
|
||||
|
||||
List<HexagonalCraftingGrid.Slot> grid = new ArrayList<>();
|
||||
List<HexagonalCraftingGrid.Slot> gem = new ArrayList<>();
|
||||
|
|
BIN
src/main/resources/assets/unicopia/textures/gui/widgets.png
Normal file
BIN
src/main/resources/assets/unicopia/textures/gui/widgets.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
Loading…
Reference in a new issue