mirror of
https://github.com/GTNewHorizons/WirelessCraftingTerminal.git
synced 2026-11-26 06:42:55 +00:00
26 lines
863 B
Java
26 lines
863 B
Java
package net.p455w0rd.wirelesscraftingterminal.common.container;
|
|
|
|
import net.minecraft.entity.player.EntityPlayer;
|
|
import net.p455w0rd.wirelesscraftingterminal.common.WCTGuiHandler;
|
|
import net.p455w0rd.wirelesscraftingterminal.reference.Reference;
|
|
|
|
import appeng.api.implementations.guiobjects.IPortableCell;
|
|
|
|
public class ContainerCraftConfirm extends appeng.container.implementations.ContainerCraftConfirm {
|
|
|
|
private final EntityPlayer player;
|
|
|
|
public ContainerCraftConfirm(EntityPlayer player, IPortableCell terminal) {
|
|
super(player.inventory, terminal);
|
|
this.player = player;
|
|
}
|
|
|
|
@Override
|
|
public void switchToOriginalGUI() {
|
|
int x = (int) player.posX;
|
|
int y = (int) player.posY;
|
|
int z = (int) player.posZ;
|
|
WCTGuiHandler.launchGui(Reference.GUI_WCT, player, player.worldObj, x, y, z);
|
|
}
|
|
}
|