use of dev.hypnotic.module.movement.FlightBlink in project Hypnotic-Client by Hypnotic-Development.
the class ClickGUI method refresh.
private void refresh() {
buttons.clear();
buttonNames.clear();
Collections.sort(ModuleManager.INSTANCE.getModulesInCategory(currentCategory), Comparator.comparing(Mod::getName));
for (Mod mod : ModuleManager.INSTANCE.getModulesInCategory(currentCategory)) {
if (!(mod instanceof FlightBlink)) {
buttonNames.add(mod.getName());
}
}
buttonNames.sort(Collator.getInstance());
Collections.sort(buttons, Comparator.comparing(ModuleButton::getName));
int count = 0;
for (String name : buttonNames) {
ModuleButton mb = new ModuleButton(ModuleManager.INSTANCE.getModuleByName(name), currentCategory, x + 120, y + count);
buttons.add(mb);
mb.startY = count;
count += 30;
}
this.offset = 0;
}
Aggregations