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.

Featured Replies

Posted

How can I get the entire content of the scoreboard? Rn i'm using this code https://gist.github.com/anonymous/a96d876851d637bad91ad0aa9b161097 but I'm only getting the last 3 characters of each line. Because I didn't find any solutions anywhere and I don't understant those two functions that much im sort of stuck

Edited by Kirk_KD
add words

  • Author

Yes I tried scoreboard.getObjectiveNames() but its still the last three characters of each line, can I get a working example? ty

Edit actually its not 3 characters if I do `new ArrayList<>(scoreboard.getObjectiveNames())`, instead its the last half of each line. for example "Games in this lobby are   " will be "s lobby are"

Edited by Kirk_KD

  • Author

Objective.getDisplayName only gets the title for some reason, i want each line in the sidebar

for example if I do

        for (int i = 0; i < 11; i++) {
            ScoreObjective objective = scoreboard.getObjectiveInDisplaySlot(i);
            if (objective == null)
                Utils.sendPrivateMessage(i + "null");
            else
                Utils.sendPrivateMessage(i + objective.getDisplayName());

none of the lines gets sent to chat, only the scoreboard title and "null"s 

Edited by Kirk_KD

  • Author

Because I am making a 1.8.9 mod, I don't know how to set the IDE's autocomplete version.

Guest
This topic is now closed to further replies.

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.