1
0
Fork 0
mirror of https://github.com/Miasmusa/Shadow.git synced 2025-04-22 01:03:26 -04:00
This commit is contained in:
0x3C50 2022-03-10 00:28:36 +01:00
parent 7342e26db5
commit 639f2e8b50
278 changed files with 1660 additions and 1472 deletions
src/main/java
me/x150/coffee
feature/gui
helper/event/events
net/shadow/client
CoffeeClientMain.java
feature
command
config
gui
items
module

View file

@ -1,4 +0,0 @@
package me.x150.coffee.feature.gui;
public interface DoesMSAA {
}

View file

@ -1,14 +0,0 @@
package me.x150.coffee.feature.gui.clickgui.theme;
import me.x150.coffee.feature.gui.clickgui.theme.impl.Custom;
import me.x150.coffee.feature.gui.clickgui.theme.impl.SipoverV1;
import me.x150.coffee.feature.module.ModuleRegistry;
public class ThemeManager {
static me.x150.coffee.feature.module.impl.render.Theme t = ModuleRegistry.getByClass(me.x150.coffee.feature.module.impl.render.Theme.class);
static Theme custom = new Custom();
static Theme sippy = new SipoverV1();
public static Theme getMainTheme() {
return t.isEnabled()?custom:sippy;
}
}

View file

@ -1,7 +0,0 @@
package me.x150.coffee.helper.event.events;
import me.x150.coffee.helper.event.events.base.NonCancellableEvent;
public class PostInitEvent extends NonCancellableEvent {
}

View file

@ -1,23 +1,23 @@
package me.x150.coffee;
package net.shadow.client;
import me.x150.coffee.feature.command.CommandRegistry;
import me.x150.coffee.feature.gui.FastTickable;
import me.x150.coffee.feature.gui.notifications.NotificationRenderer;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleRegistry;
import me.x150.coffee.helper.Rotations;
import me.x150.coffee.helper.Texture;
import me.x150.coffee.helper.event.EventType;
import me.x150.coffee.helper.event.Events;
import me.x150.coffee.helper.event.events.PostInitEvent;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.font.adapter.impl.ClientFontRenderer;
import me.x150.coffee.helper.font.render.GlyphPageFontRenderer;
import me.x150.coffee.helper.manager.ConfigManager;
import me.x150.coffee.helper.util.Utils;
import net.fabricmc.api.ModInitializer;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.Element;
import net.shadow.client.feature.command.CommandRegistry;
import net.shadow.client.feature.gui.FastTickable;
import net.shadow.client.feature.gui.notifications.NotificationRenderer;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleRegistry;
import net.shadow.client.helper.Rotations;
import net.shadow.client.helper.Texture;
import net.shadow.client.helper.event.EventType;
import net.shadow.client.helper.event.Events;
import net.shadow.client.helper.event.events.PostInitEvent;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.font.adapter.impl.ClientFontRenderer;
import net.shadow.client.helper.font.render.GlyphPageFontRenderer;
import net.shadow.client.helper.manager.ConfigManager;
import net.shadow.client.helper.util.Utils;
import org.apache.commons.lang3.RandomStringUtils;
import org.apache.logging.log4j.Level;
import org.apache.logging.log4j.LogManager;

View file

@ -3,9 +3,9 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command;
package net.shadow.client.feature.command;
import me.x150.coffee.helper.util.Utils;
import net.shadow.client.helper.util.Utils;
public abstract class Command extends Utils.Logging {

View file

@ -3,10 +3,10 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command;
package net.shadow.client.feature.command;
import me.x150.coffee.feature.command.impl.*;
import me.x150.coffee.helper.util.Utils;
import net.shadow.client.feature.command.impl.*;
import net.shadow.client.helper.util.Utils;
import java.util.ArrayList;
import java.util.Arrays;
@ -48,6 +48,7 @@ public class CommandRegistry {
commands.add(new Test());
commands.add(new Kickall());
commands.add(new ItemExploit());
commands.add(new Inject());
}
public static List<Command> getCommands() {

View file

@ -1,11 +1,11 @@
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.feature.gui.screen.BindScreen;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleRegistry;
import me.x150.coffee.helper.util.Utils;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.gui.screen.BindScreen;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleRegistry;
import net.shadow.client.helper.util.Utils;
public class Bind extends Command {
public Bind() {

View file

@ -3,12 +3,12 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.feature.config.SettingBase;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleRegistry;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.config.SettingBase;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleRegistry;
import java.util.Arrays;
import java.util.Objects;

View file

@ -3,19 +3,19 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import com.google.common.base.Charsets;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.feature.config.SettingBase;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleRegistry;
import net.minecraft.text.*;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.config.SettingBase;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleRegistry;
import org.apache.commons.io.FileUtils;
import java.io.File;

View file

@ -3,10 +3,10 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.helper.util.Utils;
import net.shadow.client.feature.command.Command;
import net.shadow.client.helper.util.Utils;
public class Drop extends Command {

View file

@ -3,13 +3,13 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.entity.effect.StatusEffect;
import net.minecraft.entity.effect.StatusEffectInstance;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.helper.util.Utils;
public class Effect extends Command {

View file

@ -1,8 +1,6 @@
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import com.mojang.brigadier.exceptions.CommandSyntaxException;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EquipmentSlot;
import net.minecraft.entity.player.PlayerEntity;
@ -11,6 +9,8 @@ import net.minecraft.item.ItemStack;
import net.minecraft.nbt.StringNbtReader;
import net.minecraft.util.Identifier;
import net.minecraft.util.registry.Registry;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import java.util.Arrays;
import java.util.Objects;

View file

@ -1,13 +1,7 @@
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.helper.event.EventType;
import me.x150.coffee.helper.event.Events;
import me.x150.coffee.helper.event.events.PacketEvent;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.nbt.NbtCompound;
@ -19,6 +13,12 @@ import net.minecraft.network.packet.s2c.play.OpenWrittenBookS2CPacket;
import net.minecraft.network.packet.s2c.play.ScreenHandlerSlotUpdateS2CPacket;
import net.minecraft.util.Hand;
import net.minecraft.util.math.Vec3d;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.helper.event.EventType;
import net.shadow.client.helper.event.Events;
import net.shadow.client.helper.event.events.PacketEvent;
import net.shadow.client.helper.util.Utils;
import java.util.Objects;
import java.util.UUID;

View file

@ -3,12 +3,12 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.client.network.PlayerListEntry;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.helper.util.Utils;
import java.util.Arrays;
import java.util.Objects;

View file

@ -3,11 +3,11 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import net.minecraft.world.GameMode;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import java.util.Arrays;

View file

@ -3,10 +3,10 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.feature.command.CommandRegistry;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.command.CommandRegistry;
import java.awt.*;

View file

@ -3,14 +3,14 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.helper.manager.HologramManager;
import net.minecraft.item.ItemStack;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.helper.manager.HologramManager;
import java.util.Arrays;
import java.util.Objects;

View file

@ -0,0 +1,83 @@
package net.shadow.client.feature.command.impl;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NbtCompound;
import net.minecraft.nbt.StringNbtReader;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import java.util.Arrays;
public class Inject extends Command {
public Inject() {
super("Inject", "Injects a chunk of nbt into the target item", "inject", "inj", "addNbt");
}
@Override
public String[] getSuggestions(String fullCommand, String[] args) {
if (args.length == 1) {
return new String[]{
"set", "clear", "add"
};
} else if (args.length > 1) {
String action = args[0].toLowerCase();
if (action.equalsIgnoreCase("set") || action.equalsIgnoreCase("add")) return new String[]{"(nbt)"};
}
return super.getSuggestions(fullCommand, args);
}
@Override
public void onExecute(String[] args) {
if (args.length == 0) {
error("Syntax: inj [set, clear, add] (nbt)");
return;
}
if (!CoffeeClientMain.client.interactionManager.hasCreativeInventory()) {
error("no creative mode? :megamind:");
return;
}
ItemStack is = CoffeeClientMain.client.player.getInventory().getMainHandStack();
if (is.isEmpty()) {
error("hold and item shithead");
return;
}
String action = args[0].toLowerCase();
switch (action) {
case "set" -> {
if (args.length < 2) {
error("Syntax: inj set (nbt)");
return;
}
String nString = String.join(" ", Arrays.copyOfRange(args, 1, args.length));
try {
NbtCompound ncNew = StringNbtReader.parse(nString);
is.setNbt(ncNew);
success("Item modified");
} catch (Exception e) {
error(e.getMessage());
}
}
case "clear" -> {
is.setNbt(new NbtCompound());
success("Item cleared");
}
case "add" -> {
if (args.length < 2) {
error("Syntax: inj add (nbt)");
return;
}
String nString = String.join(" ", Arrays.copyOfRange(args, 1, args.length));
NbtCompound old = is.getOrCreateNbt();
try {
NbtCompound ncNew = StringNbtReader.parse(nString);
old.copyFrom(ncNew);
success("Item modified");
} catch (Exception e) {
error(e.getMessage());
}
}
default -> error("Invalid subcommand. Choose set, clear or add.");
}
}
}

View file

@ -3,14 +3,14 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.client.gui.screen.ingame.InventoryScreen;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.PlayerEntity;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.helper.util.Utils;
import java.util.Objects;

View file

@ -1,14 +1,14 @@
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import joptsimple.OptionParser;
import joptsimple.OptionSet;
import joptsimple.internal.ReflectionException;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.feature.items.Item;
import me.x150.coffee.feature.items.ItemRegistry;
import me.x150.coffee.feature.items.Option;
import me.x150.coffee.helper.util.Utils;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.items.Item;
import net.shadow.client.feature.items.ItemRegistry;
import net.shadow.client.feature.items.Option;
import net.shadow.client.helper.util.Utils;
import java.util.ArrayList;
import java.util.Arrays;

View file

@ -1,7 +1,5 @@
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import net.minecraft.client.network.PlayerListEntry;
import net.minecraft.network.ClientConnection;
import net.minecraft.network.NetworkState;
@ -10,6 +8,8 @@ import net.minecraft.network.packet.c2s.handshake.HandshakeC2SPacket;
import net.minecraft.network.packet.c2s.login.LoginHelloC2SPacket;
import net.minecraft.network.packet.s2c.login.*;
import net.minecraft.text.Text;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import java.net.InetSocketAddress;

View file

@ -3,16 +3,10 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.helper.event.EventType;
import me.x150.coffee.helper.event.Events;
import me.x150.coffee.helper.event.events.PacketEvent;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.client.network.AbstractClientPlayerEntity;
import net.minecraft.entity.Entity;
import net.minecraft.entity.player.PlayerEntity;
@ -32,6 +26,12 @@ import net.minecraft.util.hit.HitResult;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.Vec3d;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.helper.event.EventType;
import net.shadow.client.helper.event.Events;
import net.shadow.client.helper.event.events.PacketEvent;
import net.shadow.client.helper.util.Utils;
import java.util.ArrayList;
import java.util.List;

View file

@ -3,13 +3,13 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleRegistry;
import me.x150.coffee.feature.module.ModuleType;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleRegistry;
import net.shadow.client.feature.module.ModuleType;
import java.util.ArrayList;
import java.util.List;

View file

@ -3,17 +3,17 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import com.mojang.brigadier.suggestion.Suggestion;
import com.mojang.brigadier.suggestion.Suggestions;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.helper.event.EventType;
import me.x150.coffee.helper.event.Events;
import me.x150.coffee.helper.event.events.PacketEvent;
import net.minecraft.network.packet.c2s.play.RequestCommandCompletionsC2SPacket;
import net.minecraft.network.packet.s2c.play.CommandSuggestionsS2CPacket;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.helper.event.EventType;
import net.shadow.client.helper.event.Events;
import net.shadow.client.helper.event.events.PacketEvent;
import java.util.HashSet;
import java.util.Iterator;

View file

@ -3,10 +3,10 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.feature.command.Command;
import net.minecraft.client.util.GlfwUtil;
import net.shadow.client.feature.command.Command;
import org.apache.commons.lang3.SystemUtils;
import java.io.IOException;

View file

@ -3,11 +3,11 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import net.minecraft.text.Text;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import java.util.Objects;

View file

@ -3,10 +3,10 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import java.util.Objects;

View file

@ -1,10 +1,10 @@
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.feature.module.ModuleRegistry;
import me.x150.coffee.feature.module.impl.exploit.SkinChangeExploit;
import me.x150.coffee.helper.Texture;
import me.x150.coffee.helper.util.Utils;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.module.ModuleRegistry;
import net.shadow.client.feature.module.impl.exploit.SkinChangeExploit;
import net.shadow.client.helper.Texture;
import net.shadow.client.helper.util.Utils;
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;

View file

@ -1,14 +1,14 @@
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import com.google.gson.Gson;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.helper.Texture;
import me.x150.coffee.helper.event.EventType;
import me.x150.coffee.helper.event.Events;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.client.texture.NativeImage;
import net.minecraft.client.texture.NativeImageBackedTexture;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import net.shadow.client.helper.Texture;
import net.shadow.client.helper.event.EventType;
import net.shadow.client.helper.event.Events;
import net.shadow.client.helper.util.Utils;
import org.apache.commons.io.FileUtils;
import org.apache.logging.log4j.Level;
import org.lwjgl.BufferUtils;

View file

@ -1,10 +1,10 @@
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.helper.nbt.NbtGroup;
import me.x150.coffee.helper.nbt.NbtList;
import me.x150.coffee.helper.nbt.NbtObject;
import me.x150.coffee.helper.nbt.NbtProperty;
import net.shadow.client.feature.command.Command;
import net.shadow.client.helper.nbt.NbtGroup;
import net.shadow.client.helper.nbt.NbtList;
import net.shadow.client.helper.nbt.NbtObject;
import net.shadow.client.helper.nbt.NbtProperty;
public class Test extends Command {
public Test() {

View file

@ -3,11 +3,11 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleRegistry;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleRegistry;
public class Toggle extends Command {

View file

@ -3,13 +3,13 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.command.impl;
package net.shadow.client.feature.command.impl;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.command.Command;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.*;
import net.minecraft.text.Text;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.command.Command;
import java.util.Objects;

View file

@ -1,4 +1,4 @@
package me.x150.coffee.feature.config;
package net.shadow.client.feature.config;
/**
* A setting describing a boolean

View file

@ -1,4 +1,4 @@
package me.x150.coffee.feature.config;
package net.shadow.client.feature.config;
import java.awt.*;
@ -16,13 +16,13 @@ public class ColorSetting extends SettingBase<Color> {
@Override
public String getConfigSave() {
return this.value.getRGB()+"";
return this.value.getRGB() + "";
}
@Override
public Color parse(String value) {
try {
return new Color(Integer.parseInt(value),true);
return new Color(Integer.parseInt(value), true);
} catch (Exception e) {
e.printStackTrace();
}

View file

@ -1,4 +1,4 @@
package me.x150.coffee.feature.config;
package net.shadow.client.feature.config;
public class DoubleSetting extends SettingBase<Double> {
final int precision;

View file

@ -1,4 +1,4 @@
package me.x150.coffee.feature.config;
package net.shadow.client.feature.config;
import java.lang.reflect.Modifier;
import java.util.Arrays;

View file

@ -1,4 +1,4 @@
package me.x150.coffee.feature.config;
package net.shadow.client.feature.config;
import java.util.ArrayList;
import java.util.List;

View file

@ -1,4 +1,4 @@
package me.x150.coffee.feature.config;
package net.shadow.client.feature.config;
import java.util.ArrayList;
import java.util.List;

View file

@ -1,4 +1,4 @@
package me.x150.coffee.feature.config;
package net.shadow.client.feature.config;
import java.util.ArrayList;
import java.util.List;

View file

@ -1,4 +1,4 @@
package me.x150.coffee.feature.config;
package net.shadow.client.feature.config;
public class StringSetting extends SettingBase<String> {

View file

@ -0,0 +1,4 @@
package net.shadow.client.feature.gui;
public interface DoesMSAA {
}

View file

@ -1,4 +1,4 @@
package me.x150.coffee.feature.gui;
package net.shadow.client.feature.gui;
public interface FastTickable {

View file

@ -1,27 +1,24 @@
package me.x150.coffee.feature.gui.clickgui;
package net.shadow.client.feature.gui.clickgui;
import com.mojang.blaze3d.systems.RenderSystem;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.gui.FastTickable;
import me.x150.coffee.feature.gui.clickgui.element.Element;
import me.x150.coffee.feature.gui.clickgui.element.impl.CategoryDisplay;
import me.x150.coffee.feature.gui.clickgui.theme.Theme;
import me.x150.coffee.feature.gui.clickgui.theme.impl.Custom;
import me.x150.coffee.feature.gui.clickgui.theme.impl.SipoverV1;
import me.x150.coffee.feature.module.ModuleRegistry;
import me.x150.coffee.feature.module.ModuleType;
import me.x150.coffee.helper.event.EventType;
import me.x150.coffee.helper.event.Events;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.font.adapter.impl.ClientFontRenderer;
import me.x150.coffee.helper.render.MSAAFramebuffer;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Transitions;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.text.Text;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.Vec2f;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.gui.FastTickable;
import net.shadow.client.feature.gui.clickgui.element.Element;
import net.shadow.client.feature.gui.clickgui.element.impl.CategoryDisplay;
import net.shadow.client.feature.module.ModuleRegistry;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.helper.event.EventType;
import net.shadow.client.helper.event.Events;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.font.adapter.impl.ClientFontRenderer;
import net.shadow.client.helper.render.MSAAFramebuffer;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Transitions;
import org.lwjgl.glfw.GLFW;
import java.awt.*;

View file

@ -1,16 +1,16 @@
package me.x150.coffee.feature.gui.clickgui;
package net.shadow.client.feature.gui.clickgui;
import com.mojang.blaze3d.systems.RenderSystem;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.gui.clickgui.theme.Theme;
import me.x150.coffee.feature.gui.clickgui.theme.ThemeManager;
import me.x150.coffee.helper.render.Renderer;
import net.minecraft.client.render.*;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.Matrix4f;
import net.minecraft.util.math.Quaternion;
import net.minecraft.util.math.Vec3d;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.gui.clickgui.theme.Theme;
import net.shadow.client.feature.gui.clickgui.theme.ThemeManager;
import net.shadow.client.helper.render.Renderer;
import org.lwjgl.opengl.GL11;
import java.awt.*;

View file

@ -1,4 +1,4 @@
package me.x150.coffee.feature.gui.clickgui.element;
package net.shadow.client.feature.gui.clickgui.element;
import net.minecraft.client.util.math.MatrixStack;

View file

@ -1,22 +1,22 @@
package me.x150.coffee.feature.gui.clickgui.element.impl;
package net.shadow.client.feature.gui.clickgui.element.impl;
import com.mojang.blaze3d.systems.RenderSystem;
import me.x150.coffee.feature.gui.clickgui.ClickGUI;
import me.x150.coffee.feature.gui.clickgui.element.Element;
import me.x150.coffee.feature.gui.clickgui.theme.Theme;
import me.x150.coffee.feature.gui.clickgui.theme.ThemeManager;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleRegistry;
import me.x150.coffee.feature.module.ModuleType;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.font.adapter.impl.ClientFontRenderer;
import me.x150.coffee.helper.render.ClipStack;
import me.x150.coffee.helper.render.Rectangle;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Transitions;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.Quaternion;
import net.shadow.client.feature.gui.clickgui.ClickGUI;
import net.shadow.client.feature.gui.clickgui.element.Element;
import net.shadow.client.feature.gui.clickgui.theme.Theme;
import net.shadow.client.feature.gui.clickgui.theme.ThemeManager;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleRegistry;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.font.adapter.impl.ClientFontRenderer;
import net.shadow.client.helper.render.ClipStack;
import net.shadow.client.helper.render.Rectangle;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Transitions;
import java.awt.*;
import java.util.ArrayList;

View file

@ -1,14 +1,14 @@
package me.x150.coffee.feature.gui.clickgui.element.impl;
package net.shadow.client.feature.gui.clickgui.element.impl;
import me.x150.coffee.feature.config.*;
import me.x150.coffee.feature.gui.clickgui.ClickGUI;
import me.x150.coffee.feature.gui.clickgui.element.Element;
import me.x150.coffee.feature.gui.clickgui.element.impl.config.*;
import me.x150.coffee.feature.gui.clickgui.theme.Theme;
import me.x150.coffee.feature.gui.clickgui.theme.ThemeManager;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.client.util.math.MatrixStack;
import net.shadow.client.feature.config.*;
import net.shadow.client.feature.gui.clickgui.ClickGUI;
import net.shadow.client.feature.gui.clickgui.element.Element;
import net.shadow.client.feature.gui.clickgui.element.impl.config.*;
import net.shadow.client.feature.gui.clickgui.theme.Theme;
import net.shadow.client.feature.gui.clickgui.theme.ThemeManager;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Utils;
import java.util.ArrayList;
import java.util.List;
@ -39,7 +39,7 @@ public class ConfigDisplay extends Element {
StringSettingEditor sse = new StringSettingEditor(0, 0, width - padding - paddingLeft, set);
bases.add(sse);
} else if (setting instanceof ColorSetting set) {
ColorSettingEditor cse = new ColorSettingEditor(0,0,width-padding-paddingLeft,set);
ColorSettingEditor cse = new ColorSettingEditor(0, 0, width - padding - paddingLeft, set);
bases.add(cse);
}
}

View file

@ -1,17 +1,17 @@
package me.x150.coffee.feature.gui.clickgui.element.impl;
package net.shadow.client.feature.gui.clickgui.element.impl;
import me.x150.coffee.feature.gui.clickgui.ClickGUI;
import me.x150.coffee.feature.gui.clickgui.element.Element;
import me.x150.coffee.feature.gui.clickgui.theme.Theme;
import me.x150.coffee.feature.gui.clickgui.theme.ThemeManager;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.render.ClipStack;
import me.x150.coffee.helper.render.Rectangle;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.MathHelper;
import net.shadow.client.feature.gui.clickgui.ClickGUI;
import net.shadow.client.feature.gui.clickgui.element.Element;
import net.shadow.client.feature.gui.clickgui.theme.Theme;
import net.shadow.client.feature.gui.clickgui.theme.ThemeManager;
import net.shadow.client.feature.module.Module;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.render.ClipStack;
import net.shadow.client.helper.render.Rectangle;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Utils;
public class ModuleDisplay extends Element {
final Module module;

View file

@ -1,13 +1,12 @@
package me.x150.coffee.feature.gui.clickgui.element.impl.config;
package net.shadow.client.feature.gui.clickgui.element.impl.config;
import me.x150.coffee.feature.config.BooleanSetting;
import me.x150.coffee.feature.gui.clickgui.ClickGUI;
import me.x150.coffee.feature.gui.clickgui.theme.Theme;
import me.x150.coffee.feature.gui.clickgui.theme.ThemeManager;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.render.Renderer;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.MathHelper;
import net.shadow.client.feature.config.BooleanSetting;
import net.shadow.client.feature.gui.clickgui.theme.Theme;
import net.shadow.client.feature.gui.clickgui.theme.ThemeManager;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.render.Renderer;
public class BooleanSettingEditor extends ConfigBase<BooleanSetting> {
final double rw = 14;

View file

@ -1,14 +1,14 @@
package me.x150.coffee.feature.gui.clickgui.element.impl.config;
package net.shadow.client.feature.gui.clickgui.element.impl.config;
import me.x150.coffee.feature.config.ColorSetting;
import me.x150.coffee.feature.config.DoubleSetting;
import me.x150.coffee.feature.gui.clickgui.element.Element;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.render.ClipStack;
import me.x150.coffee.helper.render.Rectangle;
import me.x150.coffee.helper.render.Renderer;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.MathHelper;
import net.shadow.client.feature.config.ColorSetting;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.gui.clickgui.element.Element;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.render.ClipStack;
import net.shadow.client.helper.render.Rectangle;
import net.shadow.client.helper.render.Renderer;
import java.awt.*;
@ -17,67 +17,71 @@ import static java.lang.Math.pow;
public class ColorSettingEditor extends ConfigBase<ColorSetting> {
DoubleSettingEditor red, green, blue, alpha;
boolean expanded = false;
double expandProg = 1;
public ColorSettingEditor(double x, double y, double width, ColorSetting configValue) {
super(x, y, width, 0, configValue);
red = new DoubleSettingEditor(x+4,y,width-4,new DoubleSetting((double) configValue.getValue().getRed(),"Red","",0,0,255) {
@Override
public void setValue(Double value) {
super.setValue(value);
configValue.setValue(Renderer.Util.modify(configValue.getValue(),(int) (value+0),-1,-1,-1));
}
red = new DoubleSettingEditor(x + 4, y, width - 4, new DoubleSetting((double) configValue.getValue().getRed(), "Red", "", 0, 0, 255) {
@Override
public Double getValue() {
return (double) configValue.getValue().getRed();
}
});
green = new DoubleSettingEditor(x+4,y+red.getHeight(),width-4,new DoubleSetting((double) configValue.getValue().getGreen(),"Green","",0,0,255) {
@Override
} @Override
public void setValue(Double value) {
super.setValue(value);
configValue.setValue(Renderer.Util.modify(configValue.getValue(),-1,(int) (value+0),-1,-1));
configValue.setValue(Renderer.Util.modify(configValue.getValue(), (int) (value + 0), -1, -1, -1));
}
});
green = new DoubleSettingEditor(x + 4, y + red.getHeight(), width - 4, new DoubleSetting((double) configValue.getValue().getGreen(), "Green", "", 0, 0, 255) {
@Override
public Double getValue() {
return (double) configValue.getValue().getGreen();
}
});
blue = new DoubleSettingEditor(x+4,y+red.getHeight()+green.getHeight(),width-4,new DoubleSetting((double) configValue.getValue().getBlue(),"Blue","",0,0,255) {
@Override
} @Override
public void setValue(Double value) {
super.setValue(value);
configValue.setValue(Renderer.Util.modify(configValue.getValue(),-1,-1,(int) (value+0),-1));
configValue.setValue(Renderer.Util.modify(configValue.getValue(), -1, (int) (value + 0), -1, -1));
}
});
blue = new DoubleSettingEditor(x + 4, y + red.getHeight() + green.getHeight(), width - 4, new DoubleSetting((double) configValue.getValue().getBlue(), "Blue", "", 0, 0, 255) {
@Override
public Double getValue() {
return (double) configValue.getValue().getBlue();
}
});
alpha = new DoubleSettingEditor(x+4,y+red.getHeight()+green.getHeight()+blue.getHeight(),width-4,new DoubleSetting((double) configValue.getValue().getAlpha(),"Alpha","",0,0,255) {
@Override
} @Override
public void setValue(Double value) {
super.setValue(value);
configValue.setValue(Renderer.Util.modify(configValue.getValue(),-1,-1,-1,(int) (value+0)));
configValue.setValue(Renderer.Util.modify(configValue.getValue(), -1, -1, (int) (value + 0), -1));
}
});
alpha = new DoubleSettingEditor(x + 4, y + red.getHeight() + green.getHeight() + blue.getHeight(), width - 4, new DoubleSetting((double) configValue.getValue().getAlpha(), "Alpha", "", 0, 0, 255) {
@Override
public Double getValue() {
return (double) configValue.getValue().getAlpha();
} @Override
public void setValue(Double value) {
super.setValue(value);
configValue.setValue(Renderer.Util.modify(configValue.getValue(), -1, -1, -1, (int) (value + 0)));
}
});
// this.height = red.getHeight()+green.getHeight()+blue.getHeight()+5;
}
double childHeight() {
return red.getHeight()+green.getHeight()+blue.getHeight()+ alpha.getHeight();
return red.getHeight() + green.getHeight() + blue.getHeight() + alpha.getHeight();
}
double headerHeight() {
return FontRenderers.getRenderer().getMarginHeight()+3;
return FontRenderers.getRenderer().getMarginHeight() + 3;
}
Element[] getChildren() {
return new Element[] {
return new Element[]{
red, green, blue, alpha
};
}
@ -89,7 +93,7 @@ public class ColorSettingEditor extends ConfigBase<ColorSetting> {
if (child.clicked(x, y, button)) return true;
}
}
if (x >= this.x && x <= this.x+width && y >= this.y && y <= this.y+headerHeight()) {
if (x >= this.x && x <= this.x + width && y >= this.y && y <= this.y + headerHeight()) {
expanded = !expanded;
return true;
}
@ -98,7 +102,7 @@ public class ColorSettingEditor extends ConfigBase<ColorSetting> {
@Override
public double getHeight() {
return headerHeight()+childHeight()*(this.expandProg < 0.5 ? 16 * this.expandProg * this.expandProg * this.expandProg * this.expandProg * this.expandProg : 1 - pow(-2 * this.expandProg + 2, 5) / 2)+7;
return headerHeight() + childHeight() * (this.expandProg < 0.5 ? 16 * this.expandProg * this.expandProg * this.expandProg * this.expandProg * this.expandProg : 1 - pow(-2 * this.expandProg + 2, 5) / 2) + 7;
}
@Override
@ -121,19 +125,19 @@ public class ColorSettingEditor extends ConfigBase<ColorSetting> {
public boolean keyPressed(int keycode, int modifiers) {
return false;
}
double expandProg = 1;
@Override
public void render(MatrixStack matrices, double mouseX, double mouseY, double scrollBeingUsed) {
double expandProg = this.expandProg < 0.5 ? 16 * this.expandProg * this.expandProg * this.expandProg * this.expandProg * this.expandProg : 1 - pow(-2 * this.expandProg + 2, 5) / 2;
Renderer.R2D.renderRoundedQuad(matrices, new Color(0, 0, 20, 60),x,y,x+width,y+getHeight()-2,5,20);
FontRenderers.getRenderer().drawString(matrices,configValue.getName(),x+2,y+headerHeight()/2d-FontRenderers.getRenderer().getMarginHeight()/2d,0xFFFFFF);
Renderer.R2D.renderRoundedQuad(matrices, new Color(0, 0, 20, 60), x, y, x + width, y + getHeight() - 2, 5, 20);
FontRenderers.getRenderer().drawString(matrices, configValue.getName(), x + 2, y + headerHeight() / 2d - FontRenderers.getRenderer().getMarginHeight() / 2d, 0xFFFFFF);
double yOff = headerHeight();
if (expandProg != 0) {
ClipStack.globalInstance.addWindow(matrices,new Rectangle(x,y+headerHeight(),x+width,y+headerHeight()+childHeight()*expandProg));
ClipStack.globalInstance.addWindow(matrices, new Rectangle(x, y + headerHeight(), x + width, y + headerHeight() + childHeight() * expandProg));
for (Element child : getChildren()) {
child.setY(this.y+yOff);
child.setX(this.x+2);
child.setWidth(width-4);
child.setY(this.y + yOff);
child.setX(this.x + 2);
child.setWidth(width - 4);
child.render(matrices, mouseX, mouseY, scrollBeingUsed);
yOff += child.getHeight();
}
@ -141,7 +145,7 @@ public class ColorSettingEditor extends ConfigBase<ColorSetting> {
// yOff += 1;
}
Renderer.R2D.renderRoundedQuad(matrices,configValue.getValue(),x+2,y+headerHeight()+childHeight()*expandProg,x+width-3,y+headerHeight()+childHeight()*expandProg+2,1,10);
Renderer.R2D.renderRoundedQuad(matrices, configValue.getValue(), x + 2, y + headerHeight() + childHeight() * expandProg, x + width - 3, y + headerHeight() + childHeight() * expandProg + 2, 1, 10);
}
@Override
@ -149,7 +153,7 @@ public class ColorSettingEditor extends ConfigBase<ColorSetting> {
double delta = 0.02;
if (!expanded) delta *= -1;
expandProg += delta;
expandProg = MathHelper.clamp(expandProg,0,1);
expandProg = MathHelper.clamp(expandProg, 0, 1);
for (Element child : getChildren()) {
child.tickAnim();
}

View file

@ -1,7 +1,7 @@
package me.x150.coffee.feature.gui.clickgui.element.impl.config;
package net.shadow.client.feature.gui.clickgui.element.impl.config;
import me.x150.coffee.feature.config.SettingBase;
import me.x150.coffee.feature.gui.clickgui.element.Element;
import net.shadow.client.feature.config.SettingBase;
import net.shadow.client.feature.gui.clickgui.element.Element;
public abstract class ConfigBase<C extends SettingBase<?>> extends Element {
final C configValue;

View file

@ -1,14 +1,13 @@
package me.x150.coffee.feature.gui.clickgui.element.impl.config;
package net.shadow.client.feature.gui.clickgui.element.impl.config;
import me.x150.coffee.feature.config.DoubleSetting;
import me.x150.coffee.feature.gui.clickgui.ClickGUI;
import me.x150.coffee.feature.gui.clickgui.theme.Theme;
import me.x150.coffee.feature.gui.clickgui.theme.ThemeManager;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.MathHelper;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.gui.clickgui.theme.Theme;
import net.shadow.client.feature.gui.clickgui.theme.ThemeManager;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Utils;
public class DoubleSettingEditor extends ConfigBase<DoubleSetting> {

View file

@ -1,12 +1,11 @@
package me.x150.coffee.feature.gui.clickgui.element.impl.config;
package net.shadow.client.feature.gui.clickgui.element.impl.config;
import me.x150.coffee.feature.config.EnumSetting;
import me.x150.coffee.feature.gui.clickgui.ClickGUI;
import me.x150.coffee.feature.gui.clickgui.theme.Theme;
import me.x150.coffee.feature.gui.clickgui.theme.ThemeManager;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.render.Renderer;
import net.minecraft.client.util.math.MatrixStack;
import net.shadow.client.feature.config.EnumSetting;
import net.shadow.client.feature.gui.clickgui.theme.Theme;
import net.shadow.client.feature.gui.clickgui.theme.ThemeManager;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.render.Renderer;
import java.awt.*;
import java.util.ArrayList;

View file

@ -1,9 +1,9 @@
package me.x150.coffee.feature.gui.clickgui.element.impl.config;
package net.shadow.client.feature.gui.clickgui.element.impl.config;
import me.x150.coffee.feature.config.StringSetting;
import me.x150.coffee.feature.gui.widget.RoundTextFieldWidget;
import me.x150.coffee.helper.font.FontRenderers;
import net.minecraft.client.util.math.MatrixStack;
import net.shadow.client.feature.config.StringSetting;
import net.shadow.client.feature.gui.widget.RoundTextFieldWidget;
import net.shadow.client.helper.font.FontRenderers;
public class StringSettingEditor extends ConfigBase<StringSetting> {
final RoundTextFieldWidget input;

View file

@ -1,4 +1,4 @@
package me.x150.coffee.feature.gui.clickgui.theme;
package net.shadow.client.feature.gui.clickgui.theme;
import java.awt.*;

View file

@ -0,0 +1,15 @@
package net.shadow.client.feature.gui.clickgui.theme;
import net.shadow.client.feature.gui.clickgui.theme.impl.Custom;
import net.shadow.client.feature.gui.clickgui.theme.impl.SipoverV1;
import net.shadow.client.feature.module.ModuleRegistry;
public class ThemeManager {
static net.shadow.client.feature.module.impl.render.Theme t = ModuleRegistry.getByClass(net.shadow.client.feature.module.impl.render.Theme.class);
static Theme custom = new Custom();
static Theme sippy = new SipoverV1();
public static Theme getMainTheme() {
return t.isEnabled() ? custom : sippy;
}
}

View file

@ -1,12 +1,13 @@
package me.x150.coffee.feature.gui.clickgui.theme.impl;
package net.shadow.client.feature.gui.clickgui.theme.impl;
import me.x150.coffee.feature.gui.clickgui.theme.Theme;
import me.x150.coffee.feature.module.ModuleRegistry;
import net.shadow.client.feature.gui.clickgui.theme.Theme;
import net.shadow.client.feature.module.ModuleRegistry;
import java.awt.*;
public class Custom implements Theme {
me.x150.coffee.feature.module.impl.render.Theme theme = ModuleRegistry.getByClass(me.x150.coffee.feature.module.impl.render.Theme.class);
net.shadow.client.feature.module.impl.render.Theme theme = ModuleRegistry.getByClass(net.shadow.client.feature.module.impl.render.Theme.class);
@Override
public String getName() {
return "Custom";

View file

@ -1,6 +1,6 @@
package me.x150.coffee.feature.gui.clickgui.theme.impl;
package net.shadow.client.feature.gui.clickgui.theme.impl;
import me.x150.coffee.feature.gui.clickgui.theme.Theme;
import net.shadow.client.feature.gui.clickgui.theme.Theme;
import java.awt.*;

View file

@ -1,19 +1,19 @@
package me.x150.coffee.feature.gui.hud;
package net.shadow.client.feature.gui.hud;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
import com.google.gson.JsonObject;
import com.google.gson.JsonParser;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.gui.hud.element.HudElement;
import me.x150.coffee.feature.gui.hud.element.SpeedHud;
import me.x150.coffee.feature.gui.hud.element.Taco;
import me.x150.coffee.feature.gui.hud.element.TargetHUD;
import me.x150.coffee.helper.event.EventType;
import me.x150.coffee.helper.event.Events;
import me.x150.coffee.helper.event.events.MouseEvent;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.client.gui.screen.ChatScreen;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.gui.hud.element.HudElement;
import net.shadow.client.feature.gui.hud.element.SpeedHud;
import net.shadow.client.feature.gui.hud.element.Taco;
import net.shadow.client.feature.gui.hud.element.TargetHUD;
import net.shadow.client.helper.event.EventType;
import net.shadow.client.helper.event.Events;
import net.shadow.client.helper.event.events.MouseEvent;
import net.shadow.client.helper.util.Utils;
import org.apache.commons.io.FileUtils;
import org.apache.logging.log4j.Level;

View file

@ -1,10 +1,10 @@
package me.x150.coffee.feature.gui.hud.element;
package net.shadow.client.feature.gui.hud.element;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.render.Renderer;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.MathHelper;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.render.Renderer;
import java.awt.*;

View file

@ -1,14 +1,13 @@
package me.x150.coffee.feature.gui.hud.element;
package net.shadow.client.feature.gui.hud.element;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.gui.clickgui.ClickGUI;
import me.x150.coffee.feature.gui.clickgui.theme.ThemeManager;
import me.x150.coffee.feature.module.ModuleRegistry;
import me.x150.coffee.feature.module.impl.render.Hud;
import me.x150.coffee.helper.Timer;
import me.x150.coffee.helper.render.MSAAFramebuffer;
import me.x150.coffee.helper.render.Renderer;
import net.minecraft.client.util.math.MatrixStack;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.gui.clickgui.theme.ThemeManager;
import net.shadow.client.feature.module.ModuleRegistry;
import net.shadow.client.feature.module.impl.render.Hud;
import net.shadow.client.helper.Timer;
import net.shadow.client.helper.render.MSAAFramebuffer;
import net.shadow.client.helper.render.Renderer;
import java.util.ArrayList;
import java.util.Comparator;

View file

@ -1,12 +1,12 @@
package me.x150.coffee.feature.gui.hud.element;
package net.shadow.client.feature.gui.hud.element;
import com.mojang.blaze3d.systems.RenderSystem;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.helper.Texture;
import me.x150.coffee.helper.font.FontRenderers;
import net.minecraft.client.gui.DrawableHelper;
import net.minecraft.client.render.GameRenderer;
import net.minecraft.client.util.math.MatrixStack;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.helper.Texture;
import net.shadow.client.helper.font.FontRenderers;
public class Taco extends HudElement {
public Taco() {
@ -15,10 +15,10 @@ public class Taco extends HudElement {
@Override
public void renderIntern(MatrixStack stack) {
if (!me.x150.coffee.feature.command.impl.Taco.config.enabled) {
if (!net.shadow.client.feature.command.impl.Taco.config.enabled) {
return;
}
me.x150.coffee.feature.command.impl.Taco.Frame frame = me.x150.coffee.feature.command.impl.Taco.getCurrentFrame();
net.shadow.client.feature.command.impl.Taco.Frame frame = net.shadow.client.feature.command.impl.Taco.getCurrentFrame();
if (frame == null) {
FontRenderers.getRenderer().drawString(stack, "Nothing to taco", 0, 0, 0xFFFFFF);
return;

View file

@ -1,10 +1,10 @@
package me.x150.coffee.feature.gui.hud.element;
package net.shadow.client.feature.gui.hud.element;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.module.ModuleRegistry;
import me.x150.coffee.feature.module.impl.render.TargetHud;
import me.x150.coffee.helper.render.MSAAFramebuffer;
import net.minecraft.client.util.math.MatrixStack;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.module.ModuleRegistry;
import net.shadow.client.feature.module.impl.render.TargetHud;
import net.shadow.client.helper.render.MSAAFramebuffer;
public class TargetHUD extends HudElement {

View file

@ -3,10 +3,10 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.gui.notifications;
package net.shadow.client.feature.gui.notifications;
import me.x150.coffee.helper.Texture;
import me.x150.coffee.helper.font.FontRenderers;
import net.shadow.client.helper.Texture;
import net.shadow.client.helper.font.FontRenderers;
import java.awt.*;
import java.util.ArrayList;

View file

@ -3,19 +3,18 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.gui.notifications;
package net.shadow.client.feature.gui.notifications;
import com.mojang.blaze3d.systems.RenderSystem;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.gui.clickgui.ClickGUI;
import me.x150.coffee.feature.gui.clickgui.theme.ThemeManager;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.render.ClipStack;
import me.x150.coffee.helper.render.Rectangle;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Transitions;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.MathHelper;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.gui.clickgui.theme.ThemeManager;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.render.ClipStack;
import net.shadow.client.helper.render.Rectangle;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Transitions;
import java.awt.*;
import java.util.ArrayList;
@ -122,7 +121,7 @@ public class NotificationRenderer {
long c = System.currentTimeMillis();
for (Notification notification : new ArrayList<>(notifications)) {
boolean notificationExpired = notification.creationDate + notification.duration < c;
int notifHeight = (int) (2 + ((notification.contents.length + (notification.title.isEmpty() ? 0 : 1)) * FontRenderers.getRenderer().getFontHeight()))+4;
int notifHeight = (int) (2 + ((notification.contents.length + (notification.title.isEmpty() ? 0 : 1)) * FontRenderers.getRenderer().getFontHeight())) + 4;
notifHeight = Math.max(notifHeight, 32);
double descWidth = 0;
for (String content : notification.contents) {

View file

@ -1,4 +1,4 @@
package me.x150.coffee.feature.gui.screen;
package net.shadow.client.feature.gui.screen;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
@ -8,21 +8,6 @@ import com.mojang.blaze3d.systems.RenderSystem;
import me.x150.authlib.login.mojang.MinecraftAuthenticator;
import me.x150.authlib.login.mojang.MinecraftToken;
import me.x150.authlib.login.mojang.profile.MinecraftProfile;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.gui.FastTickable;
import me.x150.coffee.feature.gui.widget.RoundButton;
import me.x150.coffee.feature.gui.widget.RoundTextFieldWidget;
import me.x150.coffee.helper.Texture;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.font.adapter.FontAdapter;
import me.x150.coffee.helper.font.adapter.impl.ClientFontRenderer;
import me.x150.coffee.helper.render.ClipStack;
import me.x150.coffee.helper.render.MSAAFramebuffer;
import me.x150.coffee.helper.render.Rectangle;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Transitions;
import me.x150.coffee.mixin.IMinecraftClientAccessor;
import me.x150.coffee.mixin.SessionAccessor;
import net.minecraft.client.gui.Element;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.render.GameRenderer;
@ -32,6 +17,21 @@ import net.minecraft.client.util.DefaultSkinHelper;
import net.minecraft.client.util.Session;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.MathHelper;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.gui.FastTickable;
import net.shadow.client.feature.gui.widget.RoundButton;
import net.shadow.client.feature.gui.widget.RoundTextFieldWidget;
import net.shadow.client.helper.Texture;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.font.adapter.FontAdapter;
import net.shadow.client.helper.font.adapter.impl.ClientFontRenderer;
import net.shadow.client.helper.render.ClipStack;
import net.shadow.client.helper.render.MSAAFramebuffer;
import net.shadow.client.helper.render.Rectangle;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Transitions;
import net.shadow.client.mixin.IMinecraftClientAccessor;
import net.shadow.client.mixin.SessionAccessor;
import org.apache.commons.io.FileUtils;
import org.apache.logging.log4j.Level;
import org.lwjgl.BufferUtils;

View file

@ -1,11 +1,11 @@
package me.x150.coffee.feature.gui.screen;
package net.shadow.client.feature.gui.screen;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.font.adapter.impl.ClientFontRenderer;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.text.Text;
import net.shadow.client.feature.module.Module;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.font.adapter.impl.ClientFontRenderer;
import org.lwjgl.glfw.GLFW;
import java.lang.reflect.Field;

View file

@ -1,10 +1,10 @@
package me.x150.coffee.feature.gui.screen;
package net.shadow.client.feature.gui.screen;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.helper.render.MSAAFramebuffer;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.text.Text;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.helper.render.MSAAFramebuffer;
public class ClientScreen extends Screen {
final int samples;

View file

@ -1,19 +1,19 @@
package me.x150.coffee.feature.gui.screen;
package net.shadow.client.feature.gui.screen;
import me.x150.coffee.feature.command.Command;
import me.x150.coffee.feature.command.CommandRegistry;
import me.x150.coffee.feature.gui.FastTickable;
import me.x150.coffee.feature.gui.widget.RoundButton;
import me.x150.coffee.feature.gui.widget.RoundTextFieldWidget;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.render.ClipStack;
import me.x150.coffee.helper.render.MSAAFramebuffer;
import me.x150.coffee.helper.render.Rectangle;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Transitions;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.MathHelper;
import net.shadow.client.feature.command.Command;
import net.shadow.client.feature.command.CommandRegistry;
import net.shadow.client.feature.gui.FastTickable;
import net.shadow.client.feature.gui.widget.RoundButton;
import net.shadow.client.feature.gui.widget.RoundTextFieldWidget;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.render.ClipStack;
import net.shadow.client.helper.render.MSAAFramebuffer;
import net.shadow.client.helper.render.Rectangle;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Transitions;
import org.lwjgl.glfw.GLFW;
import java.awt.*;

View file

@ -1,14 +1,6 @@
package me.x150.coffee.feature.gui.screen;
package net.shadow.client.feature.gui.screen;
import com.mojang.blaze3d.systems.RenderSystem;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.gui.FastTickable;
import me.x150.coffee.feature.gui.widget.RoundButton;
import me.x150.coffee.helper.Texture;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.font.adapter.impl.ClientFontRenderer;
import me.x150.coffee.helper.render.MSAAFramebuffer;
import me.x150.coffee.helper.render.Renderer;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.screen.multiplayer.MultiplayerScreen;
import net.minecraft.client.gui.screen.option.OptionsScreen;
@ -20,6 +12,14 @@ import net.minecraft.client.texture.NativeImageBackedTexture;
import net.minecraft.client.util.DefaultSkinHelper;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.MathHelper;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.gui.FastTickable;
import net.shadow.client.feature.gui.widget.RoundButton;
import net.shadow.client.helper.Texture;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.font.adapter.impl.ClientFontRenderer;
import net.shadow.client.helper.render.MSAAFramebuffer;
import net.shadow.client.helper.render.Renderer;
import org.apache.commons.io.IOUtils;
import org.lwjgl.BufferUtils;
import org.lwjgl.opengl.GL40C;

View file

@ -1,17 +1,17 @@
package me.x150.coffee.feature.gui.screen;
package net.shadow.client.feature.gui.screen;
import com.google.common.util.concurrent.AtomicDouble;
import lombok.Data;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.gui.FastTickable;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.font.adapter.impl.ClientFontRenderer;
import me.x150.coffee.helper.render.MSAAFramebuffer;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Transitions;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.MathHelper;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.gui.FastTickable;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.font.adapter.impl.ClientFontRenderer;
import net.shadow.client.helper.render.MSAAFramebuffer;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Transitions;
import net.shadow.client.helper.util.Utils;
import org.apache.logging.log4j.Level;
import javax.imageio.ImageIO;

View file

@ -1,22 +1,22 @@
package me.x150.coffee.feature.gui.screen;
package net.shadow.client.feature.gui.screen;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.gui.FastTickable;
import me.x150.coffee.feature.gui.notifications.Notification;
import me.x150.coffee.feature.gui.widget.RoundButton;
import me.x150.coffee.feature.gui.widget.RoundTextFieldWidget;
import me.x150.coffee.helper.NbtFormatter;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.render.ClipStack;
import me.x150.coffee.helper.render.Rectangle;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Transitions;
import net.minecraft.client.util.InputUtil;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.item.ItemStack;
import net.minecraft.nbt.NbtCompound;
import net.minecraft.nbt.StringNbtReader;
import net.minecraft.util.math.MathHelper;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.gui.FastTickable;
import net.shadow.client.feature.gui.notifications.Notification;
import net.shadow.client.feature.gui.widget.RoundButton;
import net.shadow.client.feature.gui.widget.RoundTextFieldWidget;
import net.shadow.client.helper.NbtFormatter;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.render.ClipStack;
import net.shadow.client.helper.render.Rectangle;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Transitions;
import org.apache.commons.compress.utils.Lists;
import org.lwjgl.glfw.GLFW;

View file

@ -1,14 +1,14 @@
package me.x150.coffee.feature.gui.screen;
package net.shadow.client.feature.gui.screen;
import com.mojang.blaze3d.systems.RenderSystem;
import me.x150.coffee.feature.gui.FastTickable;
import me.x150.coffee.feature.gui.notifications.Notification;
import me.x150.coffee.feature.gui.widget.RoundButton;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.render.Renderer;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.MathHelper;
import net.shadow.client.feature.gui.FastTickable;
import net.shadow.client.feature.gui.notifications.Notification;
import net.shadow.client.feature.gui.widget.RoundButton;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.render.Renderer;
import java.awt.*;

View file

@ -1,14 +1,14 @@
package me.x150.coffee.feature.gui.screen;
package net.shadow.client.feature.gui.screen;
import me.x150.coffee.feature.gui.widget.RoundButton;
import me.x150.coffee.feature.gui.widget.RoundTextFieldWidget;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.font.adapter.impl.ClientFontRenderer;
import me.x150.coffee.helper.render.MSAAFramebuffer;
import me.x150.coffee.helper.render.Renderer;
import net.minecraft.client.gui.Element;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.util.math.MatrixStack;
import net.shadow.client.feature.gui.widget.RoundButton;
import net.shadow.client.feature.gui.widget.RoundTextFieldWidget;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.font.adapter.impl.ClientFontRenderer;
import net.shadow.client.helper.render.MSAAFramebuffer;
import net.shadow.client.helper.render.Renderer;
import java.awt.*;

View file

@ -1,15 +1,15 @@
package me.x150.coffee.feature.gui.screen;
package net.shadow.client.feature.gui.screen;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.gui.FastTickable;
import me.x150.coffee.helper.Timer;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Transitions;
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.gui.widget.DoubleOptionSliderWidget;
import net.minecraft.client.option.DoubleOption;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.text.Text;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.gui.FastTickable;
import net.shadow.client.helper.Timer;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Transitions;
import org.apache.commons.compress.utils.Lists;
import java.awt.*;

View file

@ -1,15 +1,15 @@
package me.x150.coffee.feature.gui.widget;
package net.shadow.client.feature.gui.widget;
import me.x150.coffee.feature.gui.DoesMSAA;
import me.x150.coffee.feature.gui.FastTickable;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.render.Renderer;
import net.minecraft.client.gui.Drawable;
import net.minecraft.client.gui.Element;
import net.minecraft.client.gui.Selectable;
import net.minecraft.client.gui.screen.narration.NarrationMessageBuilder;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.MathHelper;
import net.shadow.client.feature.gui.DoesMSAA;
import net.shadow.client.feature.gui.FastTickable;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.render.Renderer;
import java.awt.*;

View file

@ -1,11 +1,5 @@
package me.x150.coffee.feature.gui.widget;
package net.shadow.client.feature.gui.widget;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.gui.DoesMSAA;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.render.ClipStack;
import me.x150.coffee.helper.render.Rectangle;
import me.x150.coffee.helper.render.Renderer;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.gui.Drawable;
import net.minecraft.client.gui.Element;
@ -13,6 +7,12 @@ import net.minecraft.client.gui.Selectable;
import net.minecraft.client.gui.screen.narration.NarrationMessageBuilder;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.MathHelper;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.gui.DoesMSAA;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.render.ClipStack;
import net.shadow.client.helper.render.Rectangle;
import net.shadow.client.helper.render.Renderer;
import org.apache.commons.lang3.SystemUtils;
import org.lwjgl.glfw.GLFW;

View file

@ -1,4 +1,4 @@
package me.x150.coffee.feature.items;
package net.shadow.client.feature.items;
import lombok.Getter;
import net.minecraft.item.ItemStack;

View file

@ -1,7 +1,8 @@
package me.x150.coffee.feature.items;
package net.shadow.client.feature.items;
import me.x150.coffee.feature.items.impl.Nuke;
import me.x150.coffee.feature.items.impl.Plague;
import net.shadow.client.feature.items.impl.Nuke;
import net.shadow.client.feature.items.impl.Plague;
import net.shadow.client.feature.items.impl.Poof;
import java.util.ArrayList;
import java.util.List;
@ -18,6 +19,7 @@ public class ItemRegistry {
items.clear();
items.add(new Nuke());
items.add(new Plague());
items.add(new Poof());
}
public List<Item> getItems() {

View file

@ -1,4 +1,4 @@
package me.x150.coffee.feature.items;
package net.shadow.client.feature.items;
import lombok.Getter;
import lombok.NonNull;

View file

@ -1,13 +1,13 @@
package me.x150.coffee.feature.items.impl;
package net.shadow.client.feature.items.impl;
import me.x150.coffee.feature.items.Item;
import me.x150.coffee.feature.items.Option;
import me.x150.coffee.helper.nbt.NbtGroup;
import me.x150.coffee.helper.nbt.NbtList;
import me.x150.coffee.helper.nbt.NbtObject;
import me.x150.coffee.helper.nbt.NbtProperty;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.shadow.client.feature.items.Item;
import net.shadow.client.feature.items.Option;
import net.shadow.client.helper.nbt.NbtGroup;
import net.shadow.client.helper.nbt.NbtList;
import net.shadow.client.helper.nbt.NbtObject;
import net.shadow.client.helper.nbt.NbtProperty;
public class Nuke extends Item {
Option<Integer> o = new Option<>("tntFuse", 120, Integer.class);

View file

@ -1,17 +1,18 @@
package me.x150.coffee.feature.items.impl;
package net.shadow.client.feature.items.impl;
import me.x150.coffee.feature.items.Item;
import me.x150.coffee.feature.items.Option;
import me.x150.coffee.helper.nbt.NbtGroup;
import me.x150.coffee.helper.nbt.NbtList;
import me.x150.coffee.helper.nbt.NbtObject;
import me.x150.coffee.helper.nbt.NbtProperty;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.shadow.client.feature.items.Item;
import net.shadow.client.feature.items.Option;
import net.shadow.client.helper.nbt.NbtGroup;
import net.shadow.client.helper.nbt.NbtList;
import net.shadow.client.helper.nbt.NbtObject;
import net.shadow.client.helper.nbt.NbtProperty;
public class Plague extends Item {
Option<Integer> duration = new Option<>("durationSeconds", 60, Integer.class);
Option<Float> spread = new Option<>("spreadRadius", 0.3f, Float.class);
public Plague() {
super("Plague", "the doctor");
}
@ -26,7 +27,7 @@ public class Plague extends Item {
new NbtProperty("id", "minecraft:protection"),
new NbtProperty("lvl", (short) 1))),
new NbtObject("EntityTag",
new NbtProperty("Duration", duration.getValue()*20),
new NbtProperty("Duration", duration.getValue() * 20),
new NbtList("Effects",
new NbtObject("",
new NbtProperty("Amplifier", (byte) 125),

View file

@ -0,0 +1,24 @@
package net.shadow.client.feature.items.impl;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
import net.minecraft.nbt.NbtCompound;
import net.shadow.client.feature.items.Item;
import net.shadow.client.feature.items.Option;
public class Poof extends Item {
Option<String> name = new Option<>("itemName", "Sam the Salmon", String.class);
public Poof() {
super("Poof", "the");
}
@Override
public ItemStack generate() {
String EXPLOIT = "{\"hoverEvent\":{\"action\":\"show_entity\",\"contents\":{\"type\":\"minecraft:bat\",\"id\":\"\0\"}},\"text\":\"" + name.getValue() + "\"}";
ItemStack stack = new ItemStack(Items.SALMON);
NbtCompound display = stack.getOrCreateSubNbt("display");
display.putString("Name", EXPLOIT);
return stack;
}
}

View file

@ -3,15 +3,15 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.module;
package net.shadow.client.feature.module;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.config.BooleanSetting;
import me.x150.coffee.feature.config.DoubleSetting;
import me.x150.coffee.feature.config.ModuleConfig;
import me.x150.coffee.feature.gui.notifications.Notification;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.util.math.MatrixStack;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.config.BooleanSetting;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.config.ModuleConfig;
import net.shadow.client.feature.gui.notifications.Notification;
public abstract class Module {

View file

@ -3,16 +3,16 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.module;
package net.shadow.client.feature.module;
import me.x150.coffee.feature.module.impl.combat.*;
import me.x150.coffee.feature.module.impl.exploit.*;
import me.x150.coffee.feature.module.impl.fun.*;
import me.x150.coffee.feature.module.impl.misc.*;
import me.x150.coffee.feature.module.impl.movement.*;
import me.x150.coffee.feature.module.impl.render.*;
import me.x150.coffee.feature.module.impl.world.*;
import net.shadow.client.feature.module.impl.combat.*;
import net.shadow.client.feature.module.impl.exploit.*;
import net.shadow.client.feature.module.impl.fun.*;
import net.shadow.client.feature.module.impl.misc.*;
import net.shadow.client.feature.module.impl.movement.*;
import net.shadow.client.feature.module.impl.render.*;
import net.shadow.client.feature.module.impl.world.*;
import java.util.ArrayList;
import java.util.List;

View file

@ -3,9 +3,9 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.module;
package net.shadow.client.feature.module;
import me.x150.coffee.helper.Texture;
import net.shadow.client.helper.Texture;
public enum ModuleType {
RENDER("Render", new Texture("icons/render")), MOVEMENT("Movement", new Texture("icons/move")), MISC("Miscellaneous", new Texture("icons/misc")), WORLD("World", new Texture("icons/world")),

View file

@ -3,18 +3,8 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.module.impl.combat;
package net.shadow.client.feature.module.impl.combat;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.config.BooleanSetting;
import me.x150.coffee.feature.config.DoubleSetting;
import me.x150.coffee.feature.config.EnumSetting;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleType;
import me.x150.coffee.helper.Rotations;
import me.x150.coffee.helper.manager.AttackManager;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.entity.Entity;
import net.minecraft.entity.LivingEntity;
@ -24,6 +14,16 @@ import net.minecraft.entity.passive.PassiveEntity;
import net.minecraft.entity.player.PlayerEntity;
import net.minecraft.util.math.Vec2f;
import net.minecraft.util.math.Vec3d;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.config.BooleanSetting;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.config.EnumSetting;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.helper.Rotations;
import net.shadow.client.helper.manager.AttackManager;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Utils;
import java.util.ArrayList;
import java.util.Comparator;

View file

@ -1,11 +1,11 @@
package me.x150.coffee.feature.module.impl.combat;
package net.shadow.client.feature.module.impl.combat;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleType;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.Hand;
import net.minecraft.util.hit.EntityHitResult;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import java.util.Objects;

View file

@ -3,21 +3,21 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.module.impl.combat;
package net.shadow.client.feature.module.impl.combat;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.config.EnumSetting;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleRegistry;
import me.x150.coffee.feature.module.ModuleType;
import me.x150.coffee.feature.module.impl.movement.NoFall;
import me.x150.coffee.helper.event.EventType;
import me.x150.coffee.helper.event.Events;
import me.x150.coffee.helper.event.events.PacketEvent;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.network.packet.c2s.play.PlayerInteractEntityC2SPacket;
import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket;
import net.minecraft.util.math.Vec3d;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.config.EnumSetting;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleRegistry;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.feature.module.impl.movement.NoFall;
import net.shadow.client.helper.event.EventType;
import net.shadow.client.helper.event.Events;
import net.shadow.client.helper.event.events.PacketEvent;
public class Criticals extends Module {

View file

@ -3,21 +3,9 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.module.impl.combat;
package net.shadow.client.feature.module.impl.combat;
import com.google.common.util.concurrent.AtomicDouble;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.config.BooleanSetting;
import me.x150.coffee.feature.config.DoubleSetting;
import me.x150.coffee.feature.config.EnumSetting;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleType;
import me.x150.coffee.helper.Packets;
import me.x150.coffee.helper.Rotations;
import me.x150.coffee.helper.Timer;
import me.x150.coffee.helper.manager.AttackManager;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.client.item.TooltipContext;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.entity.Entity;
@ -33,6 +21,18 @@ import net.minecraft.util.Hand;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.Vec3d;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.config.BooleanSetting;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.config.EnumSetting;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.helper.Packets;
import net.shadow.client.helper.Rotations;
import net.shadow.client.helper.Timer;
import net.shadow.client.helper.manager.AttackManager;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Utils;
import java.util.ArrayList;
import java.util.Comparator;

View file

@ -3,19 +3,19 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.module.impl.combat;
package net.shadow.client.feature.module.impl.combat;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.config.DoubleSetting;
import me.x150.coffee.feature.config.EnumSetting;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleType;
import me.x150.coffee.helper.event.EventType;
import me.x150.coffee.helper.event.Events;
import me.x150.coffee.helper.event.events.PacketEvent;
import me.x150.coffee.mixin.IEntityVelocityUpdateS2CPacketMixin;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.network.packet.s2c.play.EntityVelocityUpdateS2CPacket;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.config.EnumSetting;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.helper.event.EventType;
import net.shadow.client.helper.event.Events;
import net.shadow.client.helper.event.events.PacketEvent;
import net.shadow.client.mixin.IEntityVelocityUpdateS2CPacketMixin;
public class Velocity extends Module {

View file

@ -3,18 +3,8 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.module.impl.exploit;
package net.shadow.client.feature.module.impl.exploit;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.config.BooleanSetting;
import me.x150.coffee.feature.config.DoubleSetting;
import me.x150.coffee.feature.config.EnumSetting;
import me.x150.coffee.feature.gui.notifications.Notification;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleType;
import me.x150.coffee.feature.module.impl.world.XRAY;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.block.Block;
import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
@ -23,6 +13,16 @@ import net.minecraft.network.packet.c2s.play.PlayerActionC2SPacket;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.Vec3d;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.config.BooleanSetting;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.config.EnumSetting;
import net.shadow.client.feature.gui.notifications.Notification;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.feature.module.impl.world.XRAY;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Utils;
import java.awt.*;
import java.util.ArrayDeque;

View file

@ -3,12 +3,12 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.module.impl.exploit;
package net.shadow.client.feature.module.impl.exploit;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleType;
import net.minecraft.client.util.math.MatrixStack;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import java.util.Objects;

View file

@ -3,19 +3,19 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.module.impl.exploit;
package net.shadow.client.feature.module.impl.exploit;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.config.DoubleSetting;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleType;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.entity.Entity;
import net.minecraft.network.packet.c2s.play.VehicleMoveC2SPacket;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Vec3d;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Utils;
import java.awt.*;
import java.util.Objects;

View file

@ -1,18 +1,5 @@
package me.x150.coffee.feature.module.impl.exploit;
package net.shadow.client.feature.module.impl.exploit;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.config.DoubleSetting;
import me.x150.coffee.feature.config.EnumSetting;
import me.x150.coffee.feature.gui.notifications.Notification;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleType;
import me.x150.coffee.helper.Rotations;
import me.x150.coffee.helper.Timer;
import me.x150.coffee.helper.event.EventType;
import me.x150.coffee.helper.event.Events;
import me.x150.coffee.helper.event.events.MouseEvent;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.entity.projectile.ProjectileUtil;
import net.minecraft.item.ItemStack;
@ -28,6 +15,19 @@ import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.hit.EntityHitResult;
import net.minecraft.util.math.*;
import net.minecraft.world.RaycastContext;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.config.EnumSetting;
import net.shadow.client.feature.gui.notifications.Notification;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.helper.Rotations;
import net.shadow.client.helper.Timer;
import net.shadow.client.helper.event.EventType;
import net.shadow.client.helper.event.Events;
import net.shadow.client.helper.event.events.MouseEvent;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Utils;
import java.awt.*;
import java.util.ArrayList;

View file

@ -3,18 +3,8 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.module.impl.exploit;
package net.shadow.client.feature.module.impl.exploit;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.config.BooleanSetting;
import me.x150.coffee.feature.config.DoubleSetting;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleType;
import me.x150.coffee.helper.Rotations;
import me.x150.coffee.helper.event.EventType;
import me.x150.coffee.helper.event.Events;
import me.x150.coffee.helper.event.events.PacketEvent;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.entity.Entity;
import net.minecraft.entity.EntityType;
@ -25,6 +15,16 @@ import net.minecraft.network.packet.c2s.play.ClientCommandC2SPacket;
import net.minecraft.network.packet.c2s.play.PlayerActionC2SPacket;
import net.minecraft.network.packet.c2s.play.PlayerMoveC2SPacket;
import net.minecraft.util.math.Vec3d;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.config.BooleanSetting;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.helper.Rotations;
import net.shadow.client.helper.event.EventType;
import net.shadow.client.helper.event.Events;
import net.shadow.client.helper.event.events.PacketEvent;
import net.shadow.client.helper.util.Utils;
import java.util.Objects;

View file

@ -3,13 +3,8 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.module.impl.exploit;
package net.shadow.client.feature.module.impl.exploit;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.config.DoubleSetting;
import me.x150.coffee.feature.config.EnumSetting;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleType;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.item.ItemStack;
import net.minecraft.item.Items;
@ -21,6 +16,11 @@ import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.Vec3d;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.config.EnumSetting;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import java.util.Objects;
import java.util.Random;

View file

@ -3,14 +3,8 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.module.impl.exploit;
package net.shadow.client.feature.module.impl.exploit;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleType;
import me.x150.coffee.helper.font.FontRenderers;
import me.x150.coffee.helper.render.Renderer;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.network.packet.c2s.play.PlayerInteractBlockC2SPacket;
import net.minecraft.util.Hand;
@ -18,6 +12,12 @@ import net.minecraft.util.hit.BlockHitResult;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.minecraft.util.math.Vec3d;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.helper.font.FontRenderers;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Utils;
import java.util.Objects;

View file

@ -3,19 +3,19 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.module.impl.exploit;
package net.shadow.client.feature.module.impl.exploit;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.config.DoubleSetting;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleRegistry;
import me.x150.coffee.feature.module.ModuleType;
import me.x150.coffee.feature.module.impl.misc.AntiOffhandCrash;
import me.x150.coffee.helper.util.Utils;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.network.packet.c2s.play.PlayerActionC2SPacket;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.Direction;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleRegistry;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.feature.module.impl.misc.AntiOffhandCrash;
import net.shadow.client.helper.util.Utils;
public class OffhandCrash extends Module {

View file

@ -3,20 +3,20 @@
* Copyright (c) 2021-2021 0x150.
*/
package me.x150.coffee.feature.module.impl.exploit;
package net.shadow.client.feature.module.impl.exploit;
import me.x150.coffee.CoffeeClientMain;
import me.x150.coffee.feature.config.DoubleSetting;
import me.x150.coffee.feature.config.EnumSetting;
import me.x150.coffee.feature.module.Module;
import me.x150.coffee.feature.module.ModuleType;
import me.x150.coffee.helper.event.EventType;
import me.x150.coffee.helper.event.Events;
import me.x150.coffee.helper.event.events.PacketEvent;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.network.Packet;
import net.minecraft.network.packet.c2s.play.KeepAliveC2SPacket;
import net.minecraft.network.packet.c2s.play.PlayPongC2SPacket;
import net.shadow.client.CoffeeClientMain;
import net.shadow.client.feature.config.DoubleSetting;
import net.shadow.client.feature.config.EnumSetting;
import net.shadow.client.feature.module.Module;
import net.shadow.client.feature.module.ModuleType;
import net.shadow.client.helper.event.EventType;
import net.shadow.client.helper.event.Events;
import net.shadow.client.helper.event.events.PacketEvent;
import java.util.ArrayList;
import java.util.List;

Some files were not shown because too many files have changed in this diff Show more