本文整理汇总了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();
}
示例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;
}
示例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;
}
示例4: setGuiResponder
import net.minecraft.client.gui.GuiPageButtonList; //导入依赖的package包/类
public void setGuiResponder(GuiPageButtonList.GuiResponder guiResponder) {
this.guiResponder = guiResponder;
}
示例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;
}
示例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();
}
}
}
示例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_;
}
示例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;
}