Examples of openGui()


Examples of appeng.tile.storage.TileChest.openGui()

        ItemStack cell = tg.getStackInSlot( 1 );
        if ( cell != null )
        {
          ICellHandler ch = AEApi.instance().registries().cell().getHandler( cell );

          tg.openGui( p, ch, cell, side );
        }
        else
          p.addChatMessage( PlayerMessages.ChestCannotReadStorageCell.get() );
      }
View Full Code Here

Examples of mods.railcraft.common.blocks.machine.TileMultiBlock.openGui()

    @Override
    public boolean openGui(EntityPlayer player) {
        TileMultiBlock mBlock = getMasterBlock();
        if (mBlock != null)
            return mBlock.openGui(player);
        return false;
    }

    @Override
    protected int getMaxRecursionDepth() {
View Full Code Here

Examples of net.minecraft.client.entity.EntityClientPlayerMP.openGui()

  protected void actionPerformed(GuiButton b) {
    ForgeDirection dir = ForgeDirection.values()[b.id];
    EntityClientPlayerMP player = Minecraft.getMinecraft().thePlayer;
    BlockCoord loc = cb.getLocation();
    PacketHandler.INSTANCE.sendToServer(new PacketOpenConduitUI(cb.getEntity(), dir));
    player.openGui(EnderIO.instance, GuiHandler.GUI_ID_EXTERNAL_CONNECTION_BASE + dir.ordinal(), player.worldObj, loc.x, loc.y, loc.z);
  }

  @Override
  public void initGui() {
    GuiButton b;
View Full Code Here

Examples of net.minecraft.client.entity.EntityClientPlayerMP.openGui()

                }
            }

            if (world != null && TickHandlerClient.spaceRaceGuiScheduled && minecraft.currentScreen == null)
            {
                player.openGui(GalacticraftCore.instance, GuiIdsCore.SPACE_RACE_START, player.worldObj, (int) player.posX, (int) player.posY, (int) player.posZ);
                TickHandlerClient.spaceRaceGuiScheduled = false;
            }

            if (world != null && TickHandlerClient.checkedVersion)
            {
View Full Code Here

Examples of net.minecraft.client.entity.EntityClientPlayerMP.openGui()

        }
        if (pressed) {
            if (key == openKeybindGUI.getKeyCode()) {
                World world = Minecraft.getMinecraft().theWorld;
                if (Minecraft.getMinecraft().inGameHasFocus) {
                    player.openGui(ModularPowersuits.INSTANCE(), 1, world, 0, 0, 0);
                }
            }
            if (key == openCosmeticGUI.getKeyCode()) {
                World world = Minecraft.getMinecraft().theWorld;
                if (Minecraft.getMinecraft().inGameHasFocus) {
View Full Code Here

Examples of net.minecraft.client.entity.EntityClientPlayerMP.openGui()

                }
            }
            if (key == openCosmeticGUI.getKeyCode()) {
                World world = Minecraft.getMinecraft().theWorld;
                if (Minecraft.getMinecraft().inGameHasFocus) {
                    player.openGui(ModularPowersuits.INSTANCE(), 3, world, 0, 0, 0);
                }
            }
            if (key == goDownKey.getKeyCode()) {
                PlayerInputMap.getInputMapFor(player.getCommandSenderName()).downKey = true;
            }
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.openGui()

          short meta = packetData.readShort();
          int x = packetData.readInt();
          int y = packetData.readInt();
          int z = packetData.readInt();

          player.openGui( XActMod.instance, (meta << 8) | guiID, player.worldObj, x, y, z );
          return;
        }

        if( action == 0x02 ) {
          InteractiveCraftingContainer container = (InteractiveCraftingContainer) ((EntityPlayer) packetSender).openContainer;
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.openGui()

        // GuiPlan requesting a recipe (server side)
        if( action == 0x04 ) {
          // must open the recipe gui.
          EntityPlayer player = (EntityPlayer) packetSender;
          player.openGui( XActMod.instance, 5, player.worldObj, 0, 0, 0 );
          return;
        }

        // ContainerRecipe notifying GuiRecipe that the recipe has changed (client side)
        if( action == 0x05 ) {
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.openGui()

  }

  public IMessage onMessage(PacketOpenConduitUI message, MessageContext ctx) {
    EntityPlayer player = ctx.getServerHandler().playerEntity;
    TileEntity tile = message.getWorld(ctx).getTileEntity(message.x, message.y, message.z);
    player
        .openGui(EnderIO.instance, GuiHandler.GUI_ID_EXTERNAL_CONNECTION_BASE + message.dir.ordinal(), player.worldObj, tile.xCoord, tile.yCoord, tile.zCoord);
    return null;
  }

}
View Full Code Here

Examples of net.minecraft.entity.player.EntityPlayer.openGui()

   
    if(message.activeType == RobitPacketType.GUI)
    {
      if(message.guiType == 0)
      {
        player.openGui(Mekanism.instance, 21, player.worldObj, message.entityId, 0, 0);
      }
      else if(message.guiType == 1)
      {
        player.openGui(Mekanism.instance, 22, player.worldObj, message.entityId, 0, 0);
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.