nageyqma·git
HTTPS https://git.nageyqma.icu/nageyqma/blade-addons-next.git SSH git@git.nageyqma.icu:nageyqma/blade-addons-next.git

HTTPS 链接可直接 git clone;推送代码请使用 SSH。

862 B · 36 行raw
123456789101112131415161718192021222324252627282930313233343536
package blade.addon.features.other.loadout;

import blade.addon.utils.config.components.CombineableNotification;
import blade.addon.utils.config.values.ExtraOptions;
import config.practical.hud.HUDCategory;
import net.minecraft.network.chat.Component;

import java.util.List;

public class LoadoutNotification extends CombineableNotification {

    public LoadoutNotification() {
        super("Loadout notification");
    }

    @Override
    public boolean enabled() {
        return ExtraOptions.enableLoadoutNotification;
    }

    @Override
    public Component getText() {
        return Component.literal("§a" + LoadoutData.getCurrentLoadout());
    }

    @Override
    public boolean shouldRender() {
        return LoadoutData.shouldDisplayNotification();
    }

    @Override
    public List<HUDCategory> categories() {
        return null;
    }
}