net.minecraft.client.gui.screen.OptionsScreen Java Examples
The following examples show how to use
net.minecraft.client.gui.screen.OptionsScreen.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BleachMainMenu.java From bleachhack-1.14 with GNU General Public License v3.0 | 7 votes |
public void init() { this.addButton(new Button(width / 2 - 100, height / 4 + 48, 200, 20, I18n.format("menu.singleplayer"), button -> { this.minecraft.displayGuiScreen(new WorldSelectionScreen(this)); })); this.addButton(new Button(width / 2 - 100, height / 4 + 72, 200, 20, I18n.format("menu.multiplayer"), button -> { this.minecraft.displayGuiScreen(new MultiplayerScreen(this)); })); this.addButton(new Button(this.width / 2 - 100, height / 4 + 96, 98, 20, I18n.format("fml.menu.mods"), button -> { this.minecraft.displayGuiScreen(new net.minecraftforge.fml.client.gui.GuiModList(this)); })); this.addButton(new Button(width / 2 + 2, height / 4 + 96, 98, 20, "Login Manager", button -> { this.minecraft.displayGuiScreen(new LoginScreen(new StringTextComponent("LoginManager"))); })); this.addButton(new Button(width / 2 - 100, height / 4 + 129, 98, 20, I18n.format("menu.options"), button -> { this.minecraft.displayGuiScreen(new OptionsScreen(this, this.minecraft.gameSettings)); })); this.addButton(new Button(width / 2 + 2, height / 4 + 129, 98, 20, I18n.format("menu.quit"), button -> { this.minecraft.shutdown(); })); versions.clear(); versions.addAll(github.readFileLines("latestversion.txt")); time = System.currentTimeMillis(); }