MCPcopy Create free account
hub / github.com/5zig/The-5zig-Mod / tick

Method tick

The 5zig Mod/src/eu/the5zig/mod/gui/GuiLanguage.java:55–68  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

53 }
54
55 @Override
56 protected void tick() {
57 tickCount++;
58 if (tickCount >= 20) {
59 tickCount = 0;
60 if (I18n.loadLocales()) {
61 languages.clear();
62 for (Locale locale : I18n.getLanguages()) {
63 languages.add(new LanguageRow(locale));
64 }
65 languageSlot.setSelectedId(I18n.getLanguages().indexOf(I18n.getCurrentLanguage()));
66 }
67 }
68 }
69
70 @Override
71 public String getTitleKey() {

Callers

nothing calls this directly

Calls 6

loadLocalesMethod · 0.95
getLanguagesMethod · 0.95
getCurrentLanguageMethod · 0.95
clearMethod · 0.65
setSelectedIdMethod · 0.65
addMethod · 0.45

Tested by

no test coverage detected