Исходник Expensive 3.0 Hud | Отмена експенсива

Начинающий
Статус
Оффлайн
Регистрация
31 Июл 2022
Сообщения
405
Реакции[?]
15
Поинты[?]
20K

Перед прочтением основного контента ниже, пожалуйста, обратите внимание на обновление внутри секции Майна на нашем форуме. У нас появились:

  • бесплатные читы для Майнкрафт — любое использование на свой страх и риск;
  • маркетплейс Майнкрафт — абсолютно любая коммерция, связанная с игрой, за исключением продажи читов (аккаунты, предоставления услуг, поиск кодеров читов и так далее);
  • приватные читы для Minecraft — в этом разделе только платные хаки для игры, покупайте группу "Продавец" и выставляйте на продажу свой софт;
  • обсуждения и гайды — всё тот же раздел с вопросами, но теперь модернизированный: поиск нужных хаков, пати с игроками-читерами и другая полезная информация.

Спасибо!

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

Не пастил но вот-так должно быть:
1704918193999.png
OOOOGHH, THAT SO EASY:
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
    }
}
 
Последнее редактирование:
Начинающий
Статус
Оффлайн
Регистрация
6 Авг 2022
Сообщения
21
Реакции[?]
0
Поинты[?]
0
Здраствуйте молодые кодеры, как-то баловался и вот заливаю теперь худ экспы 3.0 на юг, хз кому это чудо-юдо надо, но играйтесь:4Head:
И нет, это не мой ультра селфкод на экспе 2.0.


Не пастил но вот-так должно быть:
Посмотреть вложение 268199
OOOOGHH, THAT SO EASY:
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
 
Забаненный
Статус
Оффлайн
Регистрация
3 Янв 2024
Сообщения
25
Реакции[?]
0
Поинты[?]
1K
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Ты чё тупой, хоть на винтваре юзай, хочешь на коленке напиши, пиздец.
Пастерок пасть своё закрыл он спросил нормально если ты нормально отвечать не умеешь не пиши, ты всю свою жизнь пастил даун маленький
Можно ли его использовать на эксп 2.0?
Да Screenshot_464.png автор сам написал что делал на базе экспы 2.0 вроде должно работать хотя не советую пастить лучше сам напиши
 
Начинающий
Статус
Оффлайн
Регистрация
31 Июл 2022
Сообщения
405
Реакции[?]
15
Поинты[?]
20K
Пастерок пасть своё закрыл он спросил нормально если ты нормально отвечать не умеешь не пиши, ты всю свою жизнь пастил даун маленький

Да Посмотреть вложение 268216 автор сам написал что делал на базе экспы 2.0 вроде должно работать хотя не советую пастить лучше сам напиши
Убери свой дерьмо-комент, несёшь полную чушь про меня.
 
пон
Пользователь
Статус
Оффлайн
Регистрация
12 Июл 2023
Сообщения
105
Реакции[?]
49
Поинты[?]
15K
Здраствуйте молодые кодеры, как-то баловался и вот заливаю теперь худ экспы 3.0 на юг, хз кому это чудо-юдо надо, но играйтесь:4Head:
И нет, это не мой ультра селфкод на экспе 2.0.
Достал из самих глубин селфкодов деда

Не пастил но вот-так должно быть:
Посмотреть вложение 268199
OOOOGHH, THAT SO EASY:
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 не робит чо делать ( люти пон )
 
Начинающий
Статус
Оффлайн
Регистрация
22 Авг 2022
Сообщения
316
Реакции[?]
3
Поинты[?]
3K
40, 40, 40 blackout XD
Read Only
Статус
Оффлайн
Регистрация
15 Янв 2020
Сообщения
456
Реакции[?]
228
Поинты[?]
24K
Здраствуйте молодые кодеры, как-то баловался и вот заливаю теперь худ экспы 3.0 на юг, хз кому это чудо-юдо надо, но играйтесь:4Head:
И нет, это не мой ультра селфкод на экспе 2.0.
Достал из самих глубин селфкодов деда

Не пастил но вот-так должно быть:
Посмотреть вложение 268199
OOOOGHH, THAT SO EASY:
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 Июл 2021
Сообщения
825
Реакции[?]
93
Поинты[?]
10K
ну и говно умри пастер
ооо мега селф кодер вернулся, целых 0 полезных тем на форуме, не удевительно что он такой высокомерный, считает себя крутым а всех остальных пастерами
 
40, 40, 40 blackout XD
Read Only
Статус
Оффлайн
Регистрация
15 Янв 2020
Сообщения
456
Реакции[?]
228
Поинты[?]
24K
ооо мега селф кодер вернулся, целых 0 полезных тем на форуме, не удевительно что он такой высокомерный, считает себя крутым а всех остальных пастерами
конечно я самый крутой а ты че думал щенок)
 
Начинающий
Статус
Оффлайн
Регистрация
8 Апр 2023
Сообщения
201
Реакции[?]
16
Поинты[?]
19K
ооо мега селф кодер вернулся, целых 0 полезных тем на форуме, не удевительно что он такой высокомерный, считает себя крутым а всех остальных пастерами
java это тот же lua на c# :astonished:
 
Сверху Снизу