item-highlight module

item-highlight: Minecraft 26.3 cheat module, full source for every implementation (1 client: Meteor Client).

1 implementationRender

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.

Meteor ClientRendersrc/main/java/meteordevelopment/meteorclient/systems/modules/render/ItemHighlight.javaJava · 45 lines · 1.6 KB

Highlights selected items when in guis

Settingsitemscolor
ItemHighlight.javaJava · Minecraft 26.2 · 45 lines · 1.6 KB · complete file, verbatimOriginal ↗
1
/*
2
 * This file is part of the Meteor Client distribution (https://github.com/MeteorDevelopment/meteor-client).
3
 * Copyright (c) Meteor Development.
4
 */
5
6
package meteordevelopment.meteorclient.systems.modules.render;
7
8
import meteordevelopment.meteorclient.settings.ColorSetting;
9
import meteordevelopment.meteorclient.settings.ItemListSetting;
10
import meteordevelopment.meteorclient.settings.Setting;
11
import meteordevelopment.meteorclient.settings.SettingGroup;
12
import meteordevelopment.meteorclient.systems.modules.Categories;
13
import meteordevelopment.meteorclient.systems.modules.Module;
14
import meteordevelopment.meteorclient.utils.render.color.SettingColor;
15
import net.minecraft.world.item.Item;
16
import net.minecraft.world.item.ItemStack;
17
18
import java.util.List;
19
20
public class ItemHighlight extends Module {
21
    private final SettingGroup sgGeneral = settings.getDefaultGroup();
22
23
    private final Setting<List<Item>> items = sgGeneral.add(new ItemListSetting.Builder()
24
        .name("items")
25
        .description("Items to highlight.")
26
        .build()
27
    );
28
29
    private final Setting<SettingColor> color = sgGeneral.add(new ColorSetting.Builder()
30
        .name("color")
31
        .description("The color to highlight the items with.")
32
        .defaultValue(new SettingColor(225, 25, 255, 50))
33
        .build()
34
    );
35
36
    public ItemHighlight() {
37
        super(Categories.Render, "item-highlight", "Highlights selected items when in guis");
38
    }
39
40
    public int getColor(ItemStack stack) {
41
        if (stack != null && items.get().contains(stack.getItem()) && isActive()) return color.get().getPacked();
42
        return -1;
43
    }
44
}
45