use of micdoodle8.mods.galacticraft.planets.mars.network.PacketSimpleMars in project Galacticraft by micdoodle8.
the class MarsUtil method openCargoRocketInventory.
public static void openCargoRocketInventory(EntityPlayerMP player, EntityCargoRocket rocket) {
player.getNextWindowId();
player.closeContainer();
int windowId = player.currentWindowId;
GalacticraftCore.packetPipeline.sendTo(new PacketSimpleMars(EnumSimplePacketMars.C_OPEN_CUSTOM_GUI, GCCoreUtil.getDimensionID(player.worldObj), new Object[] { windowId, 1, rocket.getEntityId() }), player);
player.openContainer = new ContainerRocketInventory(player.inventory, rocket, rocket.rocketType, player);
player.openContainer.windowId = windowId;
player.openContainer.onCraftGuiOpened(player);
}
Aggregations