当前位置: 首页>>代码示例>>Java>>正文


Java GuiPageButtonList类代码示例

本文整理汇总了Java中net.minecraft.client.gui.GuiPageButtonList的典型用法代码示例。如果您正苦于以下问题:Java GuiPageButtonList类的具体用法?Java GuiPageButtonList怎么用?Java GuiPageButtonList使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


GuiPageButtonList类属于net.minecraft.client.gui包,在下文中一共展示了GuiPageButtonList类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: Slider

import net.minecraft.client.gui.GuiPageButtonList; //导入依赖的package包/类
public Slider(GuiPageButtonList.GuiResponder guiResponder, int idIn, int x, int y, int width, int height, String name, float min, float max, float defaultValue, float stepSize, Slider.FormatHelper formatter)
{
    super(idIn, x, y, width, height, "");
    this.name = name;
    this.min = min;
    this.max = max;
    this.stepSize = stepSize;
    this.sliderPosition = (defaultValue - min) / (max - min);
    this.formatHelper = formatter;
    this.responder = guiResponder;
    this.displayString = this.getDisplayString();
}
 
开发者ID:shaunlebron,项目名称:flex-fov,代码行数:13,代码来源:Slider.java

示例2: setGuiResponder

import net.minecraft.client.gui.GuiPageButtonList; //导入依赖的package包/类
/**
 * Sets the GuiResponder associated with this text box.
 */
public void setGuiResponder(GuiPageButtonList.GuiResponder guiResponderIn)
{
	guiResponder = guiResponderIn;
}
 
开发者ID:Wurst-Imperium,项目名称:Wurst-MC-1.12-OF,代码行数:8,代码来源:PasswordField.java

示例3: setGuiResponder

import net.minecraft.client.gui.GuiPageButtonList; //导入依赖的package包/类
/**
 * Sets the GuiResponder associated with this text box.
 */
public void setGuiResponder(GuiPageButtonList.GuiResponder guiResponderIn) {
	this.guiResponder = guiResponderIn;
}
 
开发者ID:NickAcPT,项目名称:Lithium-Forge,代码行数:7,代码来源:NickGuiTextField.java

示例4: setGuiResponder

import net.minecraft.client.gui.GuiPageButtonList; //导入依赖的package包/类
public void setGuiResponder(GuiPageButtonList.GuiResponder guiResponder) {
    this.guiResponder = guiResponder;
}
 
开发者ID:boomboompower,项目名称:TextDisplayer,代码行数:4,代码来源:ModernTextBox.java

示例5: setGuiResponder

import net.minecraft.client.gui.GuiPageButtonList; //导入依赖的package包/类
/**
 * Sets the GuiResponder associated with this text box.
 */
public void setGuiResponder(GuiPageButtonList.GuiResponder guiResponderIn)
{
    this.guiResponder = guiResponderIn;
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:8,代码来源:GuiPasswordField.java

示例6: actionPerformed

import net.minecraft.client.gui.GuiPageButtonList; //导入依赖的package包/类
@Override
protected void actionPerformed(GuiButton button) throws IOException
   {
       if (button.enabled)
       {
           switch (button.id)
           {
               case 300:
                   this.field_175343_i.chunkProviderSettingsJson = this.field_175336_F.toString();
                   this.mc.displayGuiScreen(this.field_175343_i);
                   break;
               case 301:
                   for (int i = 0; i < this.field_175349_r.getSize(); ++i)
                   {
                       GuiPageButtonList.GuiEntry guientry = this.field_175349_r.getListEntry(i);
                       Gui gui = guientry.getComponent1();

                       if (gui instanceof GuiButton)
                       {
                           GuiButton guibutton1 = (GuiButton)gui;

                           if (guibutton1 instanceof GuiSlider)
                           {
                               float f = ((GuiSlider)guibutton1).getSliderPosition() * (0.75F + this.random.nextFloat() * 0.5F) + (this.random.nextFloat() * 0.1F - 0.05F);
                               ((GuiSlider)guibutton1).setSliderPosition(MathHelper.clamp(f, 0.0F, 1.0F));
                           }
                           else if (guibutton1 instanceof GuiListButton)
                           {
                               ((GuiListButton)guibutton1).setValue(this.random.nextBoolean());
                           }
                       }

                       Gui gui1 = guientry.getComponent2();

                       if (gui1 instanceof GuiButton)
                       {
                           GuiButton guibutton2 = (GuiButton)gui1;

                           if (guibutton2 instanceof GuiSlider)
                           {
                               float f1 = ((GuiSlider)guibutton2).getSliderPosition() * (0.75F + this.random.nextFloat() * 0.5F) + (this.random.nextFloat() * 0.1F - 0.05F);
                               ((GuiSlider)guibutton2).setSliderPosition(MathHelper.clamp(f1, 0.0F, 1.0F));
                           }
                           else if (guibutton2 instanceof GuiListButton)
                           {
                               ((GuiListButton)guibutton2).setValue(this.random.nextBoolean());
                           }
                       }
                   }

                   return;
               case 302:
                   this.field_175349_r.previousPage();
                   this.func_175328_i();
                   break;
               case 303:
                   this.field_175349_r.nextPage();
                   this.func_175328_i();
                   break;
               case 304:
                   if (this.field_175338_A)
                   {
                       this.func_175322_b(304);
                   }

                   break;
               case 305:
                   this.mc.displayGuiScreen(new GuiScreenCustomizeDimensionPresets(this)); 
                   break;
               case 306:
                   this.func_175331_h();
                   break;
               case 307:
                   this.field_175339_B = 0;
                   this.func_175331_h();
           }
       }
   }
 
开发者ID:lumien231,项目名称:Simple-Dimensions,代码行数:79,代码来源:GuiCustomizeDimension.java

示例7: func_175207_a

import net.minecraft.client.gui.GuiPageButtonList; //导入依赖的package包/类
public void func_175207_a(GuiPageButtonList.GuiResponder p_175207_1_) {
    field_175210_x = p_175207_1_;
}
 
开发者ID:null-dev,项目名称:EvenWurse,代码行数:4,代码来源:GuiEmailField.java

示例8: setGuiResponder

import net.minecraft.client.gui.GuiPageButtonList; //导入依赖的package包/类
/**
 * Sets the GuiResponder associated with this text box.
 */
public void setGuiResponder(GuiPageButtonList.GuiResponder guiResponderIn) {
  this.guiResponder = guiResponderIn;
}
 
开发者ID:PrinceOfAmber,项目名称:Cyclic,代码行数:7,代码来源:GuiTextFieldMulti.java


注:本文中的net.minecraft.client.gui.GuiPageButtonList类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。