Search in sources :

Example 1 with ContainerLaunchControllerAdvanced

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);
}
Also used : ContainerLaunchControllerAdvanced(micdoodle8.mods.galacticraft.planets.mars.inventory.ContainerLaunchControllerAdvanced) PacketSimpleMars(micdoodle8.mods.galacticraft.planets.mars.network.PacketSimpleMars)

Aggregations

ContainerLaunchControllerAdvanced (micdoodle8.mods.galacticraft.planets.mars.inventory.ContainerLaunchControllerAdvanced)1 PacketSimpleMars (micdoodle8.mods.galacticraft.planets.mars.network.PacketSimpleMars)1