NoSound module

NoSound: Minecraft 26.3 cheat module, full source for every implementation (1 client: Combatant).

1 implementationMISC

Clients with this module

Full module source: 1 implementation

Every implementation below is the complete module file, verbatim. Expand a client to read its code.

CombatantMISCsrc/main/java/combatant/client/features/module/modules/misc/NoSound.javaJava · 43 lines · 1.3 KB
SettingsnoSoundIds
NoSound.javaJava · Minecraft 26.2 · 43 lines · 1.3 KB · complete file, verbatimOriginal ↗
1
/*
2
 * This file is part of the Combatant Client distribution.
3
 * Copyright (c) 2026 pivosos2007.
4
 *
5
 * Licensed under the GNU General Public License v3.0.
6
 */
7
8
package combatant.client.features.module.modules.misc;
9
10
import combatant.client.config.values.SetValue;
11
import combatant.client.features.gui.clickgui.settings.TextListSetting;
12
import combatant.client.features.module.Module;
13
import combatant.client.features.module.ModuleCategory;
14
import combatant.client.features.module.ModuleInfo;
15
16
import java.util.Locale;
17
import java.util.Set;
18
19
//todo Description
20
@ModuleInfo(
21
        id = "nosound",
22
        displayName = "NoSound",
23
        category = ModuleCategory.MISC
24
)
25
public class NoSound extends Module {
26
    private static final String SETTING_SOUND_IDS = "sound_ids";
27
    private final SetValue soundIds = textList("noSoundIds", SETTING_SOUND_IDS, TextListSetting.PickerMode.SOUNDS);
28
29
    {
30
        soundIds.set(Set.of("minecraft:entity.ender_dragon.growl"));
31
    }
32
33
    public boolean shouldMute(String id) {
34
        if (!isEnabled()) return false;
35
        if (id == null || id.isEmpty()) return false;
36
        String normalized = id.toLowerCase(Locale.ROOT);
37
        for (String mutedId : soundIds.get()) {
38
            if (mutedId != null && mutedId.toLowerCase(Locale.ROOT).equals(normalized)) return true;
39
        }
40
        return false;
41
    }
42
}
43