use of micdoodle8.mods.galacticraft.planets.mars.inventory.ContainerLaunchControllerAdvanced in project Galacticraft by micdoodle8.
the class MarsUtil method openAdvancedLaunchController.
public static void openAdvancedLaunchController(EntityPlayerMP player, TileEntityLaunchController launchController) {
player.getNextWindowId();
player.closeContainer();
int windowId = player.currentWindowId;
GalacticraftCore.packetPipeline.sendTo(new PacketSimpleMars(EnumSimplePacketMars.C_OPEN_CUSTOM_GUI_TILE, GCCoreUtil.getDimensionID(player.worldObj), new Object[] { windowId, 0, launchController.getPos() }), player);
player.openContainer = new ContainerLaunchControllerAdvanced(player.inventory, launchController, player);
player.openContainer.windowId = windowId;
player.openContainer.onCraftGuiOpened(player);
}
Aggregations