Universal GUI (#872)

Co-authored-by: Kogepan229 <[email protected]>
Co-authored-by: Kogepan229 <[email protected]>
Co-authored-by: Martin Robertz <[email protected]>
This commit is contained in:
authored and GitHub committed 2025-12-11 16:09:06 +01:00
1 parent e5ea742d7a
commit bd11e11741
225 files changed
+8182 -5684

No files matched your search

@@ -1,35 +1,12 @@
package appeng.container.implementations;
import net.minecraft.entity.player.InventoryPlayer;
import net.minecraft.inventory.Slot;
import net.minecraft.world.World;
import appeng.api.networking.IGrid;
import appeng.api.networking.security.IActionHost;
import appeng.api.storage.ITerminalHost;
import appeng.container.AEBaseContainer;
import appeng.container.slot.SlotInaccessible;
import appeng.tile.inventory.AppEngInternalInventory;
public class ContainerPatternItemRenamer extends AEBaseContainer {
private final Slot patternValue;
public class ContainerPatternItemRenamer extends ContainerPatternValueAmount {
public ContainerPatternItemRenamer(final InventoryPlayer ip, final ITerminalHost te) {
super(ip, te);
patternValue = new SlotInaccessible(new AppEngInternalInventory(null, 1), 0, 34, 53);
}
public IGrid getGrid() {
final IActionHost h = ((IActionHost) getTarget());
return h.getActionableNode().getGrid();
}
public World getWorld() {
return getPlayerInv().player.worldObj;
}
public Slot getPatternValue() {
return patternValue;
}
}