mirror of
https://github.com/GTNewHorizons/Applied-Energistics-2-Unofficial.git
synced 2026-11-25 14:34:34 +00:00
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:
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user