本文整理汇总了Java中net.minecraft.client.gui.stream.GuiStreamOptions类的典型用法代码示例。如果您正苦于以下问题:Java GuiStreamOptions类的具体用法?Java GuiStreamOptions怎么用?Java GuiStreamOptions使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
GuiStreamOptions类属于net.minecraft.client.gui.stream包,在下文中一共展示了GuiStreamOptions类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: actionPerformed
import net.minecraft.client.gui.stream.GuiStreamOptions; //导入依赖的package包/类
protected void actionPerformed(GuiButton p_146284_1_)
{
if (p_146284_1_.enabled)
{
if (p_146284_1_.id < 100 && p_146284_1_ instanceof GuiOptionButton)
{
this.field_146443_h.setOptionValue(((GuiOptionButton)p_146284_1_).returnEnumOptions(), 1);
p_146284_1_.displayString = this.field_146443_h.getKeyBinding(GameSettings.Options.getEnumOptions(p_146284_1_.id));
}
if (p_146284_1_.id == 8675309)
{
this.mc.entityRenderer.activateNextShader();
}
if (p_146284_1_.id == 101)
{
this.mc.gameSettings.saveOptions();
this.mc.displayGuiScreen(new GuiVideoSettings(this, this.field_146443_h));
}
if (p_146284_1_.id == 100)
{
this.mc.gameSettings.saveOptions();
this.mc.displayGuiScreen(new GuiControls(this, this.field_146443_h));
}
if (p_146284_1_.id == 102)
{
this.mc.gameSettings.saveOptions();
this.mc.displayGuiScreen(new GuiLanguage(this, this.field_146443_h, this.mc.getLanguageManager()));
}
if (p_146284_1_.id == 103)
{
this.mc.gameSettings.saveOptions();
this.mc.displayGuiScreen(new ScreenChatOptions(this, this.field_146443_h));
}
if (p_146284_1_.id == 104)
{
this.mc.gameSettings.saveOptions();
this.mc.displayGuiScreen(new GuiSnooper(this, this.field_146443_h));
}
if (p_146284_1_.id == 200)
{
this.mc.gameSettings.saveOptions();
this.mc.displayGuiScreen(this.field_146441_g);
}
if (p_146284_1_.id == 105)
{
this.mc.gameSettings.saveOptions();
this.mc.displayGuiScreen(new GuiScreenResourcePacks(this));
}
if (p_146284_1_.id == 106)
{
this.mc.gameSettings.saveOptions();
this.mc.displayGuiScreen(new GuiScreenOptionsSounds(this, this.field_146443_h));
}
if (p_146284_1_.id == 107)
{
this.mc.gameSettings.saveOptions();
IStream istream = this.mc.func_152346_Z();
if (istream.func_152936_l() && istream.func_152928_D())
{
this.mc.displayGuiScreen(new GuiStreamOptions(this, this.field_146443_h));
}
else
{
GuiStreamUnavailable.func_152321_a(this);
}
}
}
}