Examples of GuiScreen


Examples of net.minecraft.client.gui.GuiScreen

  public World getWorld() {
    return player.worldObj;
  }

  private void notifyClient() { // client-only
    GuiScreen screen = Minecraft.getMinecraft().currentScreen;
    if( screen != null && screen instanceof GuiCrafting ) {
      ((GuiCrafting) screen).pushRecipe( lastRecipe );
    }
  }
View Full Code Here

Examples of net.minecraft.client.gui.GuiScreen

  }

  @Override
  public void keyDown(EnumSet<TickType> types, KeyBinding kb, boolean tickEnd, boolean isRepeat) {
    if( tickEnd ) {
      GuiScreen currentScreen = FMLClientHandler.instance().getClient().currentScreen;
      if( currentScreen == null ) {
        if( kb.keyDescription.equals( "xact.openGrid" ) ) {
          int slot = getCraftPadIndex();
          if( slot != -1 )
            GuiUtils.openGui( 3, slot + 1 ); // Open Craft Pad GUI.
View Full Code Here

Examples of net.minecraft.client.gui.GuiScreen

          return;
        }

        // ContainerRecipe notifying GuiRecipe that the recipe has changed (client side)
        if( action == 0x05 ) {
          GuiScreen screen = ClientProxy.getCurrentScreen();
          if( screen instanceof GuiRecipe ) {
            GuiRecipe gui = (GuiRecipe) screen;
            // gui.buttonID = packetData.readByte(); // todo: recheck this.
          }
          return;
View Full Code Here

Examples of net.minecraft.client.gui.GuiScreen

  //////////
  ///// Recipe Deque

  @SideOnly(Side.CLIENT)
  private void notifyClientOfRecipeChanged() {
    GuiScreen screen = Minecraft.getMinecraft().currentScreen;
    if( screen != null && screen instanceof GuiCrafting ) {
      ((GuiCrafting) screen).pushRecipe( recipes[4] );
    }
  }
View Full Code Here

Examples of net.minecraft.client.gui.GuiScreen

      LightningBolt.update();

      if(Minecraft.getMinecraft().theWorld == null)
        ManaNetworkHandler.instance.clear();

      GuiScreen gui = Minecraft.getMinecraft().currentScreen;
      if(gui == null || !gui.doesGuiPauseGame()) {
        ticksInGame++;

        EntityPlayer player = Minecraft.getMinecraft().thePlayer;
        if(player != null) {
          ItemStack stack = player.getCurrentEquippedItem();
View Full Code Here

Examples of net.minecraft.client.gui.GuiScreen

  @Override
  public boolean isPaused()
  {
    if(FMLClientHandler.instance().getClient().isSingleplayer() && !FMLClientHandler.instance().getClient().getIntegratedServer().getPublic())
    {
      GuiScreen screen = FMLClientHandler.instance().getClient().currentScreen;

      if(screen != null && screen.doesGuiPauseGame())
      {
        return true;
      }
    }
View Full Code Here

Examples of net.minecraft.client.gui.GuiScreen

  }
 
  @Override
  protected void doProcess()
  {
    GuiScreen gui = Minecraft.getMinecraft().currentScreen;
   
    setValue("open", gui != null);
   
    setValue("is_commandblock", gui instanceof GuiCommandBlock);
   
View Full Code Here

Examples of net.minecraft.client.gui.GuiScreen

    static {
        addSlotClickHandler(new DefaultSlotClickHandler());
    }

    public static GuiContainerManager getManager() {
        GuiScreen gui = Minecraft.getMinecraft().currentScreen;
        return gui instanceof GuiContainer ? getManager((GuiContainer) gui) : null;
    }
View Full Code Here

Examples of net.minecraft.client.gui.GuiScreen

    @Override
    public void keyTyped(char c, int keycode) {
        if (keycode == 1)//esc
        {
            GuiScreen p = parent;
            while (p instanceof GuiOptionList)
                p = ((GuiOptionList) p).parent;

            Minecraft.getMinecraft().displayGuiScreen(p);
        } else {
View Full Code Here

Examples of net.minecraft.client.gui.GuiScreen

            GCPlayerStatsClient stats = GCPlayerStatsClient.get(playerClient);
            for (ISchematicPage page : stats.unlockedSchematics)
            {
                if (ID == page.getGuiID())
                {
                    GuiScreen screen = page.getResultScreen(playerClient, position.intX(), position.intY(), position.intZ());

                    if (screen instanceof ISchematicResultPage)
                    {
                        ((ISchematicResultPage) screen).setPageIndex(page.getPageID());
                    }
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.