Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

TheKralGame

Members
  • Joined

  • Last visited

  1. TheKralGame joined the community
  2. hello i want to add a button to main menu. Screen myevent = event.getGui(); if (myevent instanceof MainMenuScreen){ myevent.addButton(new Button(20, 20, 20, 20, new StringTextComponent("Text"), (e)->{ System.out.println("Sa"); })); } It says addButton is protected. I tried accesstransformers thing. and i wrote this protected net.minecraft.client.gui.screen.Screen addButton(Lnet/minecraft/client/gui/IGuiEventListener;)Lnet/minecraft/client/gui/IGuiEventListener; protected net.minecraft.client.gui.screen.Screen addListener(Lnet/minecraft/client/gui/IGuiEventListener;)Lnet/minecraft/client/gui/IGuiEventListener; but it is not working. The code of addButton and addListener protected <T extends Widget> T addButton(T button) { this.buttons.add(button); return this.addListener(button); } protected <T extends IGuiEventListener> T addListener(T listener) { this.children.add(listener); return listener; } Please help me

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.