Package net.minecraft.client.gui

Examples of net.minecraft.client.gui.GuiButton.mousePressed()


    }
    boolean handledButton = false;
    if (par3 == 0) {
      for (int l = 0; l < this.buttonList.size(); ++l) {
        GuiButton guibutton = (GuiButton) this.buttonList.get(l);
        if (guibutton.mousePressed(this.mc, par1, par2)) {
          this.selectedButton = guibutton;
          guibutton.func_146113_a(this.mc.getSoundHandler());
          this.actionPerformed(guibutton);
          handledButton = true;
          break;
View Full Code Here


  }

  private boolean mouseCanPressButton(int par1, int par2) {
    for (int l = 0; l < this.buttonList.size(); ++l) {
      GuiButton guibutton = (GuiButton) this.buttonList.get(l);
      if (guibutton.mousePressed(this.mc, par1, par2)) {
        return true;
      }
    }
    return false;
  }
View Full Code Here

    if ( btn == 1 )
    {
      for (Object o : this.buttonList)
      {
        GuiButton guibutton = (GuiButton) o;
        if ( guibutton.mousePressed( this.mc, xCoord, yCoord ) )
        {
          super.mouseClicked( xCoord, yCoord, 0 );
          return;
        }
      }
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.