added ability to open backpacks enabled by NoHotbarNeeded

This commit is contained in:
Eduard Rakhmankulov committed 2025-12-25 01:37:13 +03:00
1 parent f88742e7ab
commit 604209fd91
21 files changed
+227 -96

No files matched your search

@@ -15,6 +15,7 @@ import forestry.api.core.Tabs;
import forestry.apiculture.gui.ContainerImprinter;
import forestry.apiculture.gui.GuiImprinter;
import forestry.apiculture.inventory.ItemInventoryImprinter;
import forestry.core.inventory.ItemLocation;
import forestry.core.items.ItemWithGui;
public class ItemImprinter extends ItemWithGui {
@@ -24,12 +25,12 @@ public class ItemImprinter extends ItemWithGui {
}
@Override
public Object getGui(EntityPlayer player, ItemStack heldItem, int data) {
public Object getGui(EntityPlayer player, ItemStack heldItem, int data, ItemLocation loc) {
return new GuiImprinter(player.inventory, new ItemInventoryImprinter(player, heldItem));
}
@Override
public Object getContainer(EntityPlayer player, ItemStack heldItem, int data) {
public Object getContainer(EntityPlayer player, ItemStack heldItem, int data, ItemLocation loc) {
return new ContainerImprinter(player.inventory, new ItemInventoryImprinter(player, heldItem));
}
}