v2.3 - sputnik rename
This commit is contained in:
1 parent
dc2429918e
commit
8f17bd8e67
305 files changed
+1349
-1351
No files matched your search
@@ -5,19 +5,19 @@ mod para Minecraft Fabric 1.21.10 que añade algunas cosas QOL, mayormente relac
|
|||||||
## instalación
|
## instalación
|
||||||
|
|
||||||
### para gente normal:
|
### para gente normal:
|
||||||
1. ir a [lanzamientos](https://github.com/retuci0/camera-tweaks/releases)
|
1. ir a [lanzamientos](https://github.com/retuci0/sputnik/releases)
|
||||||
2. selecionar la versión más reciente
|
2. selecionar la versión más reciente
|
||||||
3. descargar el .jar
|
3. descargar el .jar
|
||||||
4. moverlo a tu directorio de mods (probablemente `%appdata%/.minecraft/mods`)
|
4. moverlo a tu directorio de mods (probablemente `%appdata%/.minecraft/mods`)
|
||||||
|
|
||||||
asegúrate de tener una version de Minecraft y Fabric compatibles con el mod (MC `1.21.10`; Fabric `0.138.3`)
|
asegúrate de tener una version de Minecraft y Fabric compatibles con el mod (MC `1.21.11`; Fabric `0.17.3`)
|
||||||
es posible que haya problemas al usarlo junto a otros mods, especialmente junto a otros clientes, pues pueden conflictar entre ellos.
|
es posible que haya problemas al usarlo junto a otros mods, especialmente junto a otros clientes, pues pueden conflictar entre ellos.
|
||||||
|
|
||||||
### para frikis de 200 de iq
|
### para frikis de 200 de iq
|
||||||
1. clona el respositorio (`git clone https://github.com/retuci0/camera-tweaks`)
|
1. clona el respositorio (`git clone https://github.com/retuci0/sputnik`)
|
||||||
2. entra al directorio del repositorio (`cd camera-tweaks`)
|
2. entra al directorio del repositorio (`cd sputnik`)
|
||||||
3. `gradlew build` para Windows o `chmod +x gradlew` + `./gradlew build` para Linux (Mac es Linux)
|
3. `gradlew build` para Windows o `chmod +x gradlew` + `./gradlew build` para Linux (Mac es Linux)
|
||||||
4. el resultado estará en `/build/libs/camtweaks-X.X.jar` (el que no lleva "sources" en el nombre)
|
4. el resultado estará en `/build/libs/sputnik-X.X.jar` (el que no lleva "sources" en el nombre)
|
||||||
|
|
||||||
## uso
|
## uso
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -29,7 +29,7 @@ dependencies {
|
|||||||
}
|
}
|
||||||
|
|
||||||
loom {
|
loom {
|
||||||
accessWidenerPath = file("src/main/resources/camtweaks.accesswidener")
|
accessWidenerPath = file("src/main/resources/sputnik.accesswidener")
|
||||||
}
|
}
|
||||||
|
|
||||||
processResources {
|
processResources {
|
||||||
|
|||||||
+4
-12
@@ -1,25 +1,17 @@
|
|||||||
# v2.2
|
# v2.3
|
||||||
|
|
||||||
## novedades
|
## novedades
|
||||||
|
|
||||||
- elementos del hud con imágenes
|
- renombrado el mod a sputnik porque esmegma o cameratweaks era un asco y sputnik ta to wapo
|
||||||
|
|
||||||
### adiciones
|
### adiciones
|
||||||
|
|
||||||
- elementos del hud de dinosaurios (autismaxxing), echest (items del echest) y totems (totems restantes en el inventario)
|
|
||||||
|
|
||||||
#### módulos nuevos:
|
#### módulos nuevos:
|
||||||
|
|
||||||
- conejo: haz el elytra-bounce más fácilmente
|
|
||||||
|
|
||||||
### arreglos / mejoras
|
### arreglos / mejoras
|
||||||
|
|
||||||
- ya no te puedes mover con una interfaz abierta en modo cámara libre
|
- ahora tienes un múltiplo en críticos, es decir, un número por el que se multiplica la cantidad de partículas a generar
|
||||||
- minar sin interrupción ya va
|
- ya no se guardan los ajustes mientras se cargan
|
||||||
- destello de enchants ya funciona
|
|
||||||
- ahora no siempre se verá a traves de paredes al renderizar (ej.: superposición de luz)
|
|
||||||
- el renderizado de líneas ya se adapta bien a la posición de la cámara
|
|
||||||
- la superposición de daño ya funciona
|
|
||||||
|
|
||||||
## problemas reconocidos
|
## problemas reconocidos
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -8,6 +8,6 @@ loom_version=1.13-SNAPSHOT
|
|||||||
|
|
||||||
fabric_api_version=0.140.2+1.21.11
|
fabric_api_version=0.140.2+1.21.11
|
||||||
|
|
||||||
mod_version=2.2
|
mod_version=2.3
|
||||||
maven_group=me.retucio
|
maven_group=me.retucio
|
||||||
archives_base_name=camtweaks
|
archives_base_name=sputnik
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see me.retucio.camtweaks.mixin.ChunkOcclusionDataBuilderMixin#onChunkOcclusion
|
|
||||||
*/
|
|
||||||
public class ChunkOcclusionEvent extends Event {}
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see me.retucio.camtweaks.mixin.MinecraftClientMixin#onStop
|
|
||||||
*/
|
|
||||||
public class ShutdownEvent extends Event {
|
|
||||||
|
|
||||||
public ShutdownEvent() {}
|
|
||||||
}
|
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @see me.retucio.camtweaks.mixin.MinecraftClientMixin#onTickPre
|
|
||||||
* @see me.retucio.camtweaks.mixin.MinecraftClientMixin#onTickPost
|
|
||||||
*/
|
|
||||||
public class TickEvent {
|
|
||||||
|
|
||||||
public static class Pre extends Event {}
|
|
||||||
public static class Post extends Event {}
|
|
||||||
}
|
|
||||||
+32
-44
@@ -1,37 +1,36 @@
|
|||||||
package me.retucio.camtweaks;
|
package me.retucio.sputnik;
|
||||||
|
|
||||||
|
|
||||||
import me.retucio.camtweaks.command.CommandManager;
|
import me.retucio.sputnik.command.CommandManager;
|
||||||
import me.retucio.camtweaks.command.commands.BindCommand;
|
import me.retucio.sputnik.command.commands.BindCommand;
|
||||||
|
|
||||||
import me.retucio.camtweaks.config.ConfigManager;
|
import me.retucio.sputnik.config.ConfigManager;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.EventBus;
|
import me.retucio.sputnik.event.EventBus;
|
||||||
import me.retucio.camtweaks.event.SubscribeEvent;
|
import me.retucio.sputnik.event.SubscribeEvent;
|
||||||
import me.retucio.camtweaks.event.events.ShutdownEvent;
|
import me.retucio.sputnik.event.events.ShutdownEvent;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.events.camtweaks.LoadClickGUIEvent;
|
import me.retucio.sputnik.event.events.sputnik.LoadClickGUIEvent;
|
||||||
import me.retucio.camtweaks.event.events.camtweaks.LoadCommandManagerEvent;
|
import me.retucio.sputnik.event.events.sputnik.LoadCommandManagerEvent;
|
||||||
import me.retucio.camtweaks.event.events.camtweaks.LoadModuleManagerEvent;
|
import me.retucio.sputnik.event.events.sputnik.LoadModuleManagerEvent;
|
||||||
import me.retucio.camtweaks.module.Module;
|
import me.retucio.sputnik.module.Module;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
|
|
||||||
import me.retucio.camtweaks.module.modules.client.HUD;
|
import me.retucio.sputnik.module.modules.client.HUD;
|
||||||
import me.retucio.camtweaks.ui.screen.ClickGUI;
|
import me.retucio.sputnik.ui.screen.ClickGUI;
|
||||||
import me.retucio.camtweaks.ui.hud.HudEditorScreen;
|
import me.retucio.sputnik.ui.hud.HudEditorScreen;
|
||||||
import me.retucio.camtweaks.ui.hud.HudRenderer;
|
import me.retucio.sputnik.ui.widgets.buttons.settings.BindButton;
|
||||||
import me.retucio.camtweaks.ui.widgets.buttons.settings.BindButton;
|
import me.retucio.sputnik.ui.widgets.buttons.SettingButton;
|
||||||
import me.retucio.camtweaks.ui.widgets.buttons.SettingButton;
|
import me.retucio.sputnik.ui.widgets.buttons.settings.TextButton;
|
||||||
import me.retucio.camtweaks.ui.widgets.buttons.settings.TextButton;
|
import me.retucio.sputnik.ui.widgets.frames.settings.ClientSettingsFrame;
|
||||||
import me.retucio.camtweaks.ui.widgets.frames.settings.ClientSettingsFrame;
|
import me.retucio.sputnik.ui.widgets.frames.SettingsFrame;
|
||||||
import me.retucio.camtweaks.ui.widgets.frames.SettingsFrame;
|
|
||||||
|
|
||||||
import me.retucio.camtweaks.ui.widgets.Button;
|
import me.retucio.sputnik.ui.widgets.Button;
|
||||||
import me.retucio.camtweaks.util.*;
|
import me.retucio.sputnik.util.*;
|
||||||
|
|
||||||
|
|
||||||
import me.retucio.camtweaks.util.render.DrawUtil;
|
import me.retucio.sputnik.util.render.DrawUtil;
|
||||||
import me.retucio.camtweaks.util.render.RenderUtil;
|
import me.retucio.sputnik.util.render.RenderUtil;
|
||||||
import net.fabricmc.api.ClientModInitializer;
|
import net.fabricmc.api.ClientModInitializer;
|
||||||
|
|
||||||
import net.fabricmc.loader.api.FabricLoader;
|
import net.fabricmc.loader.api.FabricLoader;
|
||||||
@@ -50,43 +49,33 @@ import org.lwjgl.glfw.GLFW;
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
public class CameraTweaks implements ClientModInitializer {
|
public class Sputnik implements ClientModInitializer {
|
||||||
|
|
||||||
// cosas necesarias
|
// cosas necesarias
|
||||||
public static final CameraTweaks INSTANCE = new CameraTweaks();
|
public static final Sputnik INSTANCE = new Sputnik();
|
||||||
public static final EventBus EVENT_BUS = new EventBus();
|
public static final EventBus EVENT_BUS = new EventBus();
|
||||||
public static final Logger LOGGER = LogManager.getLogger(CameraTweaks.class);
|
public static final Logger LOGGER = LogManager.getLogger(Sputnik.class);
|
||||||
public static MinecraftClient mc;
|
public static MinecraftClient mc;
|
||||||
|
|
||||||
// id y versión
|
// id y versión
|
||||||
public static final String MOD_ID = "camtweaks";
|
public static final String MOD_ID = "sputnik";
|
||||||
public static final String MOD_VERSION;
|
public static final String MOD_VERSION = FabricLoader.getInstance()
|
||||||
|
.getModContainer(MOD_ID)
|
||||||
static {
|
|
||||||
MOD_VERSION = FabricLoader.getInstance().getModContainer(MOD_ID)
|
|
||||||
.orElseThrow()
|
.orElseThrow()
|
||||||
.getMetadata()
|
.getMetadata()
|
||||||
.getVersion()
|
.getVersion()
|
||||||
.getFriendlyString();
|
.getFriendlyString();
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
private Screen prevScreen;
|
private Screen prevScreen;
|
||||||
public static boolean settingsApplied = false;
|
public static boolean settingsApplied = false;
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInitializeClient() {
|
public void onInitializeClient() {
|
||||||
// por algún motivo aunque lo añada a los args de la JVM sigue siendo true a menos que haga esto??? puta vida
|
|
||||||
System.setProperty("java.awt.headless", "false");
|
|
||||||
|
|
||||||
mc = MinecraftClient.getInstance();
|
mc = MinecraftClient.getInstance();
|
||||||
ConfigManager.load();
|
ConfigManager.load();
|
||||||
|
|
||||||
EVENT_BUS.register(this);
|
EVENT_BUS.register(this);
|
||||||
|
|
||||||
EVENT_BUS.register(HudRenderer.class);
|
|
||||||
|
|
||||||
EVENT_BUS.register(ChatUtil.class);
|
EVENT_BUS.register(ChatUtil.class);
|
||||||
EVENT_BUS.register(DrawUtil.class);
|
EVENT_BUS.register(DrawUtil.class);
|
||||||
EVENT_BUS.register(EntityUtil.class);
|
EVENT_BUS.register(EntityUtil.class);
|
||||||
@@ -108,7 +97,6 @@ public class CameraTweaks implements ClientModInitializer {
|
|||||||
EVENT_BUS.post(new LoadClickGUIEvent());
|
EVENT_BUS.post(new LoadClickGUIEvent());
|
||||||
|
|
||||||
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
|
Runtime.getRuntime().addShutdownHook(new Thread(() -> {
|
||||||
ConfigManager.save();
|
|
||||||
EVENT_BUS.post(new ShutdownEvent());
|
EVENT_BUS.post(new ShutdownEvent());
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
@@ -127,7 +115,7 @@ public class CameraTweaks implements ClientModInitializer {
|
|||||||
|
|
||||||
|
|
||||||
// se ejecuta cada vez que se presiona una tecla
|
// se ejecuta cada vez que se presiona una tecla
|
||||||
public void onKeyPress(int key, int action) {
|
public void onKey(int key, int action) {
|
||||||
if (key == GLFW.GLFW_KEY_F3) return; // prevenir activación de módulos al usar combinaciones de F3
|
if (key == GLFW.GLFW_KEY_F3) return; // prevenir activación de módulos al usar combinaciones de F3
|
||||||
ModuleManager.INSTANCE.getEnabledModules().forEach(module -> module.onKey(key, action));
|
ModuleManager.INSTANCE.getEnabledModules().forEach(module -> module.onKey(key, action));
|
||||||
|
|
||||||
@@ -173,7 +161,7 @@ public class CameraTweaks implements ClientModInitializer {
|
|||||||
// se ocupa de hacer los botones de ajustes que lo necesiten escuchar teclas
|
// se ocupa de hacer los botones de ajustes que lo necesiten escuchar teclas
|
||||||
private void handleSettingButtonsKey(int key, int action) {
|
private void handleSettingButtonsKey(int key, int action) {
|
||||||
for (SettingsFrame sf : ClickGUI.INSTANCE.getSettingsFrames()) {
|
for (SettingsFrame sf : ClickGUI.INSTANCE.getSettingsFrames()) {
|
||||||
for (SettingButton sb : sf.getButtons()) {
|
for (SettingButton<?> sb : sf.getButtons()) {
|
||||||
if (sb instanceof BindButton bb) bb.onKey(key, action);
|
if (sb instanceof BindButton bb) bb.onKey(key, action);
|
||||||
if (sb instanceof TextButton tb) tb.onKey(key, action);
|
if (sb instanceof TextButton tb) tb.onKey(key, action);
|
||||||
}
|
}
|
||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
package me.retucio.camtweaks.command;
|
package me.retucio.sputnik.command;
|
||||||
|
|
||||||
import com.mojang.brigadier.CommandDispatcher;
|
import com.mojang.brigadier.CommandDispatcher;
|
||||||
import com.mojang.brigadier.arguments.ArgumentType;
|
import com.mojang.brigadier.arguments.ArgumentType;
|
||||||
@@ -65,7 +65,7 @@ public abstract class Command {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public String toString() {
|
public String toString() {
|
||||||
return me.retucio.camtweaks.command.CommandManager.INSTANCE.getPrefix() + name;
|
return me.retucio.sputnik.command.CommandManager.INSTANCE.getPrefix() + name;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String toString(String... args) {
|
public String toString(String... args) {
|
||||||
+4
-6
@@ -1,11 +1,9 @@
|
|||||||
package me.retucio.camtweaks.command;
|
package me.retucio.sputnik.command;
|
||||||
|
|
||||||
import com.mojang.brigadier.CommandDispatcher;
|
import com.mojang.brigadier.CommandDispatcher;
|
||||||
import com.mojang.brigadier.exceptions.CommandSyntaxException;
|
import com.mojang.brigadier.exceptions.CommandSyntaxException;
|
||||||
import me.retucio.camtweaks.CameraTweaks;
|
import me.retucio.sputnik.command.commands.*;
|
||||||
import me.retucio.camtweaks.command.commands.*;
|
import me.retucio.sputnik.event.SubscribeEvent;
|
||||||
import me.retucio.camtweaks.event.SubscribeEvent;
|
|
||||||
import me.retucio.camtweaks.module.Module;
|
|
||||||
import net.minecraft.client.MinecraftClient;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
|
|
||||||
@@ -49,7 +47,7 @@ public class CommandManager {
|
|||||||
for (Command command : commands) {
|
for (Command command : commands) {
|
||||||
for (Method method : command.getClass().getDeclaredMethods()) {
|
for (Method method : command.getClass().getDeclaredMethods()) {
|
||||||
if (method.isAnnotationPresent(SubscribeEvent.class)) {
|
if (method.isAnnotationPresent(SubscribeEvent.class)) {
|
||||||
CameraTweaks.EVENT_BUS.register(command);
|
me.retucio.sputnik.Sputnik.EVENT_BUS.register(command);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+3
-4
@@ -1,4 +1,4 @@
|
|||||||
package me.retucio.camtweaks.command.args;
|
package me.retucio.sputnik.command.args;
|
||||||
|
|
||||||
import com.mojang.brigadier.StringReader;
|
import com.mojang.brigadier.StringReader;
|
||||||
import com.mojang.brigadier.arguments.ArgumentType;
|
import com.mojang.brigadier.arguments.ArgumentType;
|
||||||
@@ -8,18 +8,17 @@ import com.mojang.brigadier.exceptions.DynamicCommandExceptionType;
|
|||||||
import com.mojang.brigadier.suggestion.Suggestions;
|
import com.mojang.brigadier.suggestion.Suggestions;
|
||||||
import com.mojang.brigadier.suggestion.SuggestionsBuilder;
|
import com.mojang.brigadier.suggestion.SuggestionsBuilder;
|
||||||
|
|
||||||
import me.retucio.camtweaks.util.EntityUtil;
|
import me.retucio.sputnik.util.EntityUtil;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
|
|
||||||
import javax.swing.*;
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.concurrent.CompletableFuture;
|
import java.util.concurrent.CompletableFuture;
|
||||||
import java.util.regex.Pattern;
|
import java.util.regex.Pattern;
|
||||||
|
|
||||||
// para autocompletar entidades
|
// para autocompletar entidades
|
||||||
import static me.retucio.camtweaks.CameraTweaks.mc;
|
import static me.retucio.sputnik.Sputnik.mc;
|
||||||
|
|
||||||
public class EntityArgumentType implements ArgumentType<Entity> {
|
public class EntityArgumentType implements ArgumentType<Entity> {
|
||||||
|
|
||||||
+3
-3
@@ -1,4 +1,4 @@
|
|||||||
package me.retucio.camtweaks.command.args;
|
package me.retucio.sputnik.command.args;
|
||||||
|
|
||||||
import com.mojang.brigadier.StringReader;
|
import com.mojang.brigadier.StringReader;
|
||||||
import com.mojang.brigadier.arguments.ArgumentType;
|
import com.mojang.brigadier.arguments.ArgumentType;
|
||||||
@@ -7,8 +7,8 @@ import com.mojang.brigadier.exceptions.CommandSyntaxException;
|
|||||||
import com.mojang.brigadier.exceptions.DynamicCommandExceptionType;
|
import com.mojang.brigadier.exceptions.DynamicCommandExceptionType;
|
||||||
import com.mojang.brigadier.suggestion.Suggestions;
|
import com.mojang.brigadier.suggestion.Suggestions;
|
||||||
import com.mojang.brigadier.suggestion.SuggestionsBuilder;
|
import com.mojang.brigadier.suggestion.SuggestionsBuilder;
|
||||||
import me.retucio.camtweaks.module.Module;
|
import me.retucio.sputnik.module.Module;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
|
|
||||||
+2
-2
@@ -1,4 +1,4 @@
|
|||||||
package me.retucio.camtweaks.command.args;
|
package me.retucio.sputnik.command.args;
|
||||||
|
|
||||||
import com.mojang.brigadier.StringReader;
|
import com.mojang.brigadier.StringReader;
|
||||||
import com.mojang.brigadier.arguments.ArgumentType;
|
import com.mojang.brigadier.arguments.ArgumentType;
|
||||||
@@ -15,7 +15,7 @@ import java.util.Collection;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.concurrent.CompletableFuture;
|
import java.util.concurrent.CompletableFuture;
|
||||||
|
|
||||||
import static me.retucio.camtweaks.CameraTweaks.mc;
|
import static me.retucio.sputnik.Sputnik.mc;
|
||||||
|
|
||||||
// para autocompletar nombres de jugadores
|
// para autocompletar nombres de jugadores
|
||||||
public class PlayerArgumentType implements ArgumentType<PlayerEntity> {
|
public class PlayerArgumentType implements ArgumentType<PlayerEntity> {
|
||||||
+7
-7
@@ -1,12 +1,12 @@
|
|||||||
package me.retucio.camtweaks.command.commands;
|
package me.retucio.sputnik.command.commands;
|
||||||
|
|
||||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
import me.retucio.camtweaks.command.Command;
|
import me.retucio.sputnik.command.Command;
|
||||||
import me.retucio.camtweaks.command.args.ModuleArgumentType;
|
import me.retucio.sputnik.command.args.ModuleArgumentType;
|
||||||
import me.retucio.camtweaks.module.Module;
|
import me.retucio.sputnik.module.Module;
|
||||||
import me.retucio.camtweaks.module.settings.KeySetting;
|
import me.retucio.sputnik.module.settings.KeySetting;
|
||||||
import me.retucio.camtweaks.util.ChatUtil;
|
import me.retucio.sputnik.util.ChatUtil;
|
||||||
import me.retucio.camtweaks.util.KeyUtil;
|
import me.retucio.sputnik.util.KeyUtil;
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
import net.minecraft.util.Formatting;
|
import net.minecraft.util.Formatting;
|
||||||
+4
-4
@@ -1,9 +1,9 @@
|
|||||||
package me.retucio.camtweaks.command.commands;
|
package me.retucio.sputnik.command.commands;
|
||||||
|
|
||||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
import me.retucio.camtweaks.command.Command;
|
import me.retucio.sputnik.command.Command;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.misc.ScreenshotPlus;
|
import me.retucio.sputnik.module.modules.misc.ScreenshotPlus;
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
|
|
||||||
// se usa principalmente para el módulo ScreenshotPlus, pero también se puede usar sin él supongo
|
// se usa principalmente para el módulo ScreenshotPlus, pero también se puede usar sin él supongo
|
||||||
+7
-8
@@ -1,13 +1,12 @@
|
|||||||
package me.retucio.camtweaks.command.commands;
|
package me.retucio.sputnik.command.commands;
|
||||||
|
|
||||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
import me.retucio.camtweaks.CameraTweaks;
|
import me.retucio.sputnik.command.Command;
|
||||||
import me.retucio.camtweaks.command.Command;
|
import me.retucio.sputnik.event.SubscribeEvent;
|
||||||
import me.retucio.camtweaks.event.SubscribeEvent;
|
import me.retucio.sputnik.event.events.TickEvent;
|
||||||
import me.retucio.camtweaks.event.events.TickEvent;
|
import me.retucio.sputnik.ui.screen.PreviewScreen;
|
||||||
import me.retucio.camtweaks.ui.screen.PreviewScreen;
|
import me.retucio.sputnik.util.ChatUtil;
|
||||||
import me.retucio.camtweaks.util.ChatUtil;
|
import me.retucio.sputnik.util.InventoryUtil;
|
||||||
import me.retucio.camtweaks.util.InventoryUtil;
|
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
|
|
||||||
// accede a los contenidos de tu enderchest
|
// accede a los contenidos de tu enderchest
|
||||||
+3
-3
@@ -1,8 +1,8 @@
|
|||||||
package me.retucio.camtweaks.command.commands;
|
package me.retucio.sputnik.command.commands;
|
||||||
|
|
||||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
import me.retucio.camtweaks.command.Command;
|
import me.retucio.sputnik.command.Command;
|
||||||
import me.retucio.camtweaks.util.ChatUtil;
|
import me.retucio.sputnik.util.ChatUtil;
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
|
|
||||||
+4
-4
@@ -1,9 +1,9 @@
|
|||||||
package me.retucio.camtweaks.command.commands;
|
package me.retucio.sputnik.command.commands;
|
||||||
|
|
||||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
import me.retucio.camtweaks.command.Command;
|
import me.retucio.sputnik.command.Command;
|
||||||
import me.retucio.camtweaks.command.args.PlayerArgumentType;
|
import me.retucio.sputnik.command.args.PlayerArgumentType;
|
||||||
import me.retucio.camtweaks.util.MiscUtil;
|
import me.retucio.sputnik.util.MiscUtil;
|
||||||
import net.minecraft.client.gui.screen.ingame.InventoryScreen;
|
import net.minecraft.client.gui.screen.ingame.InventoryScreen;
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
|
|
||||||
+4
-4
@@ -1,10 +1,10 @@
|
|||||||
package me.retucio.camtweaks.command.commands;
|
package me.retucio.sputnik.command.commands;
|
||||||
|
|
||||||
import com.mojang.brigadier.arguments.StringArgumentType;
|
import com.mojang.brigadier.arguments.StringArgumentType;
|
||||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
import me.retucio.camtweaks.command.Command;
|
import me.retucio.sputnik.command.Command;
|
||||||
import me.retucio.camtweaks.ui.widgets.frames.settings.ClientSettingsFrame;
|
import me.retucio.sputnik.ui.widgets.frames.settings.ClientSettingsFrame;
|
||||||
import me.retucio.camtweaks.util.ChatUtil;
|
import me.retucio.sputnik.util.ChatUtil;
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
import net.minecraft.util.Formatting;
|
import net.minecraft.util.Formatting;
|
||||||
+3
-3
@@ -1,9 +1,9 @@
|
|||||||
package me.retucio.camtweaks.command.commands;
|
package me.retucio.sputnik.command.commands;
|
||||||
|
|
||||||
import com.mojang.brigadier.arguments.IntegerArgumentType;
|
import com.mojang.brigadier.arguments.IntegerArgumentType;
|
||||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
import me.retucio.camtweaks.command.Command;
|
import me.retucio.sputnik.command.Command;
|
||||||
import me.retucio.camtweaks.util.interfaces.IChatHud;
|
import me.retucio.sputnik.util.interfaces.IChatHud;
|
||||||
import net.minecraft.client.gui.hud.ChatHud;
|
import net.minecraft.client.gui.hud.ChatHud;
|
||||||
import net.minecraft.client.gui.hud.ChatHudLine;
|
import net.minecraft.client.gui.hud.ChatHudLine;
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
+5
-5
@@ -1,10 +1,10 @@
|
|||||||
package me.retucio.camtweaks.command.commands;
|
package me.retucio.sputnik.command.commands;
|
||||||
|
|
||||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
import me.retucio.camtweaks.command.Command;
|
import me.retucio.sputnik.command.Command;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.misc.ScreenshotPlus;
|
import me.retucio.sputnik.module.modules.misc.ScreenshotPlus;
|
||||||
import me.retucio.camtweaks.util.ChatUtil;
|
import me.retucio.sputnik.util.ChatUtil;
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
+3
-4
@@ -1,9 +1,9 @@
|
|||||||
package me.retucio.camtweaks.command.commands;
|
package me.retucio.sputnik.command.commands;
|
||||||
|
|
||||||
import com.mojang.brigadier.arguments.StringArgumentType;
|
import com.mojang.brigadier.arguments.StringArgumentType;
|
||||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
import me.retucio.camtweaks.command.Command;
|
import me.retucio.sputnik.command.Command;
|
||||||
import me.retucio.camtweaks.mixin.accessor.ClientPlayNetworkHandlerAccessor;
|
import me.retucio.sputnik.mixin.accessor.ClientPlayNetworkHandlerAccessor;
|
||||||
import net.minecraft.client.network.ClientPlayNetworkHandler;
|
import net.minecraft.client.network.ClientPlayNetworkHandler;
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
import net.minecraft.network.encryption.NetworkEncryptionUtils;
|
import net.minecraft.network.encryption.NetworkEncryptionUtils;
|
||||||
@@ -11,7 +11,6 @@ import net.minecraft.network.message.LastSeenMessagesCollector;
|
|||||||
import net.minecraft.network.message.MessageBody;
|
import net.minecraft.network.message.MessageBody;
|
||||||
import net.minecraft.network.message.MessageSignatureData;
|
import net.minecraft.network.message.MessageSignatureData;
|
||||||
import net.minecraft.network.packet.c2s.play.ChatMessageC2SPacket;
|
import net.minecraft.network.packet.c2s.play.ChatMessageC2SPacket;
|
||||||
import net.minecraft.text.Text;
|
|
||||||
|
|
||||||
import java.time.Instant;
|
import java.time.Instant;
|
||||||
|
|
||||||
+6
-7
@@ -1,12 +1,11 @@
|
|||||||
package me.retucio.camtweaks.command.commands;
|
package me.retucio.sputnik.command.commands;
|
||||||
|
|
||||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
import me.retucio.camtweaks.command.Command;
|
import me.retucio.sputnik.command.Command;
|
||||||
import me.retucio.camtweaks.command.args.EntityArgumentType;
|
import me.retucio.sputnik.command.args.EntityArgumentType;
|
||||||
import me.retucio.camtweaks.event.SubscribeEvent;
|
import me.retucio.sputnik.event.SubscribeEvent;
|
||||||
import me.retucio.camtweaks.event.events.KeyEvent;
|
import me.retucio.sputnik.event.events.KeyEvent;
|
||||||
import me.retucio.camtweaks.util.EntityUtil;
|
import me.retucio.sputnik.util.EntityUtil;
|
||||||
import me.retucio.camtweaks.util.MiscUtil;
|
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import org.lwjgl.glfw.GLFW;
|
import org.lwjgl.glfw.GLFW;
|
||||||
+5
-5
@@ -1,10 +1,10 @@
|
|||||||
package me.retucio.camtweaks.command.commands;
|
package me.retucio.sputnik.command.commands;
|
||||||
|
|
||||||
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
import com.mojang.brigadier.builder.LiteralArgumentBuilder;
|
||||||
import me.retucio.camtweaks.command.Command;
|
import me.retucio.sputnik.command.Command;
|
||||||
import me.retucio.camtweaks.command.args.ModuleArgumentType;
|
import me.retucio.sputnik.command.args.ModuleArgumentType;
|
||||||
import me.retucio.camtweaks.module.Module;
|
import me.retucio.sputnik.module.Module;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
|
|
||||||
// porque usar el ratón es más lento que escribir, a menos que tengas toque con el teclado como yo
|
// porque usar el ratón es más lento que escribir, a menos que tengas toque con el teclado como yo
|
||||||
+7
-7
@@ -1,15 +1,15 @@
|
|||||||
package me.retucio.camtweaks.config;
|
package me.retucio.sputnik.config;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.SubscribeEvent;
|
import me.retucio.sputnik.event.SubscribeEvent;
|
||||||
import me.retucio.camtweaks.event.events.camtweaks.*;
|
import me.retucio.sputnik.event.events.sputnik.*;
|
||||||
import me.retucio.camtweaks.module.settings.*;
|
import me.retucio.sputnik.module.settings.*;
|
||||||
import me.retucio.camtweaks.ui.screen.ClickGUI;
|
import me.retucio.sputnik.ui.screen.ClickGUI;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
import static me.retucio.camtweaks.CameraTweaks.EVENT_BUS;
|
import static me.retucio.sputnik.Sputnik.EVENT_BUS;
|
||||||
import static me.retucio.camtweaks.CameraTweaks.mc;
|
import static me.retucio.sputnik.Sputnik.mc;
|
||||||
|
|
||||||
// clase donde se guardan las configuraciones temporalmente hasta escribirlas en camera_tweaks.json
|
// clase donde se guardan las configuraciones temporalmente hasta escribirlas en camera_tweaks.json
|
||||||
public class ClientConfig {
|
public class ClientConfig {
|
||||||
+37
-35
@@ -1,15 +1,15 @@
|
|||||||
package me.retucio.camtweaks.config;
|
package me.retucio.sputnik.config;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.GsonBuilder;
|
import com.google.gson.GsonBuilder;
|
||||||
import me.retucio.camtweaks.CameraTweaks;
|
import me.retucio.sputnik.module.Module;
|
||||||
import me.retucio.camtweaks.module.Module;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.settings.*;
|
||||||
import me.retucio.camtweaks.module.settings.*;
|
import me.retucio.sputnik.ui.widgets.Frame;
|
||||||
import me.retucio.camtweaks.ui.widgets.frames.ModuleFrame;
|
import me.retucio.sputnik.ui.widgets.frames.ModuleFrame;
|
||||||
import me.retucio.camtweaks.ui.screen.ClickGUI;
|
import me.retucio.sputnik.ui.screen.ClickGUI;
|
||||||
import me.retucio.camtweaks.ui.widgets.frames.settings.ClientSettingsFrame;
|
import me.retucio.sputnik.ui.widgets.frames.settings.ClientSettingsFrame;
|
||||||
import me.retucio.camtweaks.ui.widgets.frames.SettingsFrame;
|
import me.retucio.sputnik.ui.widgets.frames.SettingsFrame;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileReader;
|
import java.io.FileReader;
|
||||||
@@ -23,7 +23,7 @@ import java.util.Map;
|
|||||||
public class ConfigManager {
|
public class ConfigManager {
|
||||||
|
|
||||||
private static final Gson GSON = new GsonBuilder().setPrettyPrinting().create();
|
private static final Gson GSON = new GsonBuilder().setPrettyPrinting().create();
|
||||||
private static final File CONFIG_FILE = new File("camera_tweaks.json");
|
private static final File CONFIG_FILE = new File("sputnik.json");
|
||||||
|
|
||||||
private static boolean loaded = false;
|
private static boolean loaded = false;
|
||||||
private static ClientConfig config = null;
|
private static ClientConfig config = null;
|
||||||
@@ -33,19 +33,20 @@ public class ConfigManager {
|
|||||||
|
|
||||||
// guardar configuraciones
|
// guardar configuraciones
|
||||||
public static void save() {
|
public static void save() {
|
||||||
|
if (!loaded) return;
|
||||||
ensureConfig();
|
ensureConfig();
|
||||||
|
|
||||||
try (FileWriter writer = new FileWriter(CONFIG_FILE)) {
|
try (FileWriter writer = new FileWriter(CONFIG_FILE)) {
|
||||||
GSON.toJson(config, writer);
|
GSON.toJson(config, writer);
|
||||||
CameraTweaks.LOGGER.info("ajustes guardados");
|
me.retucio.sputnik.Sputnik.LOGGER.info("ajustes guardados");
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
CameraTweaks.LOGGER.error("error al guardar ajustes", e);
|
me.retucio.sputnik.Sputnik.LOGGER.error("error al guardar ajustes", e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// cargar configuraciones
|
// cargar configuraciones
|
||||||
public static void load() {
|
public static void load() {
|
||||||
CameraTweaks.LOGGER.info("cargando ajustes...");
|
me.retucio.sputnik.Sputnik.LOGGER.info("cargando ajustes...");
|
||||||
|
|
||||||
if (!CONFIG_FILE.exists()) {
|
if (!CONFIG_FILE.exists()) {
|
||||||
ensureConfig();
|
ensureConfig();
|
||||||
@@ -55,9 +56,9 @@ public class ConfigManager {
|
|||||||
|
|
||||||
try (FileReader reader = new FileReader(CONFIG_FILE)) {
|
try (FileReader reader = new FileReader(CONFIG_FILE)) {
|
||||||
config = GSON.fromJson(reader, ClientConfig.class);
|
config = GSON.fromJson(reader, ClientConfig.class);
|
||||||
CameraTweaks.LOGGER.info("ajustes cargados");
|
me.retucio.sputnik.Sputnik.LOGGER.info("ajustes cargados");
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
CameraTweaks.LOGGER.error("no se pudieron cargar los ajustes, usando ajustes por defecto", e);
|
me.retucio.sputnik.Sputnik.LOGGER.error("no se pudieron cargar los ajustes, usando ajustes por defecto", e);
|
||||||
ensureConfig();
|
ensureConfig();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -74,7 +75,7 @@ public class ConfigManager {
|
|||||||
applyExtendableFrames();
|
applyExtendableFrames();
|
||||||
|
|
||||||
loaded = true;
|
loaded = true;
|
||||||
CameraTweaks.LOGGER.info("ajustes aplicados");
|
me.retucio.sputnik.Sputnik.LOGGER.info("ajustes aplicados");
|
||||||
}
|
}
|
||||||
|
|
||||||
// obtener configuración actual
|
// obtener configuración actual
|
||||||
@@ -159,7 +160,7 @@ public class ConfigManager {
|
|||||||
case ListSetting listSetting -> applyListSetting(listSetting, value);
|
case ListSetting listSetting -> applyListSetting(listSetting, value);
|
||||||
case ColorSetting colorSetting -> applyColorSetting(colorSetting, value);
|
case ColorSetting colorSetting -> applyColorSetting(colorSetting, value);
|
||||||
case OptionSetting optionSetting -> applyOptionSetting(optionSetting, value);
|
case OptionSetting optionSetting -> applyOptionSetting(optionSetting, value);
|
||||||
default -> CameraTweaks.LOGGER.warn("watafac queseso: {}", setting.getClass().getSimpleName());
|
default -> me.retucio.sputnik.Sputnik.LOGGER.warn("watafac queseso: {}", setting.getClass().getSimpleName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -169,14 +170,14 @@ public class ConfigManager {
|
|||||||
module.setEnabled(config.moduleStates.get(module.getName()));
|
module.setEnabled(config.moduleStates.get(module.getName()));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
CameraTweaks.LOGGER.info("estados de módulos aplicados");
|
me.retucio.sputnik.Sputnik.LOGGER.info("estados de módulos aplicados");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void applyModuleSettings() {
|
private static void applyModuleSettings() {
|
||||||
ModuleManager.INSTANCE.getModules().forEach(module -> {
|
ModuleManager.INSTANCE.getModules().forEach(module -> {
|
||||||
module.getSettings().forEach(setting -> applySetting(module, setting));
|
module.getSettings().forEach(setting -> applySetting(module, setting));
|
||||||
});
|
});
|
||||||
CameraTweaks.LOGGER.info("ajustes de módulos aplicados");
|
me.retucio.sputnik.Sputnik.LOGGER.info("ajustes de módulos aplicados");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void applySettingsFrames() {
|
private static void applySettingsFrames() {
|
||||||
@@ -184,7 +185,7 @@ public class ConfigManager {
|
|||||||
Module module = ModuleManager.INSTANCE.getModuleByName(moduleName);
|
Module module = ModuleManager.INSTANCE.getModuleByName(moduleName);
|
||||||
ClickGUI.INSTANCE.openSettingsFrame(module, position[0], position[1]);
|
ClickGUI.INSTANCE.openSettingsFrame(module, position[0], position[1]);
|
||||||
});
|
});
|
||||||
CameraTweaks.LOGGER.info("estados de marcos de ajustes aplicados");
|
me.retucio.sputnik.Sputnik.LOGGER.info("estados de marcos de ajustes aplicados");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void applySearchBarPosition() {
|
private static void applySearchBarPosition() {
|
||||||
@@ -192,7 +193,7 @@ public class ConfigManager {
|
|||||||
ClickGUI.INSTANCE.getSearchBar().setX(config.searchBarPosition[0]);
|
ClickGUI.INSTANCE.getSearchBar().setX(config.searchBarPosition[0]);
|
||||||
ClickGUI.INSTANCE.getSearchBar().setY(config.searchBarPosition[1]);
|
ClickGUI.INSTANCE.getSearchBar().setY(config.searchBarPosition[1]);
|
||||||
}
|
}
|
||||||
CameraTweaks.LOGGER.info("posición de la barra de búsqueda aplicada");
|
me.retucio.sputnik.Sputnik.LOGGER.info("posición de la barra de búsqueda aplicada");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void applyGuiSettings() {
|
private static void applyGuiSettings() {
|
||||||
@@ -200,32 +201,33 @@ public class ConfigManager {
|
|||||||
ClientSettingsFrame.guiSettings.getSettings().forEach(setting -> {
|
ClientSettingsFrame.guiSettings.getSettings().forEach(setting -> {
|
||||||
applySetting(ClientSettingsFrame.guiSettings, setting);
|
applySetting(ClientSettingsFrame.guiSettings, setting);
|
||||||
});
|
});
|
||||||
CameraTweaks.LOGGER.info("ajustes del cliente aplicados");
|
me.retucio.sputnik.Sputnik.LOGGER.info("ajustes del cliente aplicados");
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void applyExtendableFrames() {
|
private static void applyExtendableFrames() {
|
||||||
applyExtendableFrame(ClickGUI.INSTANCE.getModulesFrame());
|
applyExtendableFrame(ClickGUI.INSTANCE.getModulesFrame());
|
||||||
applyExtendableFrame(ClickGUI.INSTANCE.getGuiSettingsFrame());
|
applyExtendableFrame(ClickGUI.INSTANCE.getGuiSettingsFrame());
|
||||||
|
|
||||||
CameraTweaks.LOGGER.info("posiciones de marcos extendibles aplicadasa");
|
me.retucio.sputnik.Sputnik.LOGGER.info("posiciones de marcos extendibles aplicadasa");
|
||||||
ClickGUI.INSTANCE.refreshListButtons();
|
ClickGUI.INSTANCE.refreshListButtons();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void applyExtendableFrame(ModuleFrame frame) {
|
private static void applyExtendableFrame(Frame<?> frame) {
|
||||||
ClientConfig.FrameData frameData = config.extendableFrames.get("M");
|
ClientConfig.FrameData frameData = null;
|
||||||
if (frameData != null) {
|
if (frame instanceof ModuleFrame)
|
||||||
frame.setX(frameData.x());
|
frameData = config.extendableFrames.get("M");
|
||||||
frame.setY(frameData.y());
|
|
||||||
frame.extended = frameData.extended();
|
if (frame instanceof ClientSettingsFrame)
|
||||||
}
|
frameData = config.extendableFrames.get("S");
|
||||||
}
|
|
||||||
|
|
||||||
private static void applyExtendableFrame(ClientSettingsFrame frame) {
|
|
||||||
ClientConfig.FrameData frameData = config.extendableFrames.get("S");
|
|
||||||
if (frameData != null) {
|
if (frameData != null) {
|
||||||
frame.setX(frameData.x());
|
frame.setX(frameData.x());
|
||||||
frame.setY(frameData.y());
|
frame.setY(frameData.y());
|
||||||
frame.extended = frameData.extended();
|
|
||||||
|
if (frame instanceof ModuleFrame mFrame)
|
||||||
|
mFrame.extended = frameData.extended();
|
||||||
|
if (frame instanceof ClientSettingsFrame sFrame)
|
||||||
|
sFrame.extended = frameData.extended();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -314,7 +316,7 @@ public class ConfigManager {
|
|||||||
// ------------------ MÉTODOS DE AYUDA ------------------
|
// ------------------ MÉTODOS DE AYUDA ------------------
|
||||||
|
|
||||||
private static boolean shouldApply() {
|
private static boolean shouldApply() {
|
||||||
return CameraTweaks.mc != null && ModuleManager.INSTANCE != null && config != null;
|
return me.retucio.sputnik.Sputnik.mc != null && ModuleManager.INSTANCE != null && config != null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package me.retucio.camtweaks.event;
|
package me.retucio.sputnik.event;
|
||||||
|
|
||||||
// evento base, cancelable (usado en mixins)
|
// evento base, cancelable (usado en mixins)
|
||||||
public class Event {
|
public class Event {
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package me.retucio.camtweaks.event;
|
package me.retucio.sputnik.event;
|
||||||
|
|
||||||
import java.lang.reflect.Method;
|
import java.lang.reflect.Method;
|
||||||
import java.lang.reflect.Modifier;
|
import java.lang.reflect.Modifier;
|
||||||
+2
-3
@@ -1,11 +1,10 @@
|
|||||||
package me.retucio.camtweaks.event;
|
package me.retucio.sputnik.event;
|
||||||
|
|
||||||
import net.minecraft.client.world.ClientWorld;
|
import net.minecraft.client.world.ClientWorld;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.MinecraftClientMixin#onJoinWorld
|
* @see me.retucio.sputnik.mixin.MinecraftClientMixin#onJoinWorld
|
||||||
*/
|
*/
|
||||||
public class JoinWorldEvent extends Event {
|
public class JoinWorldEvent extends Event {
|
||||||
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package me.retucio.camtweaks.event;
|
package me.retucio.sputnik.event;
|
||||||
|
|
||||||
public enum Stage {
|
public enum Stage {
|
||||||
PRE, // antes de que haya sucedido
|
PRE, // antes de que haya sucedido
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package me.retucio.camtweaks.event;
|
package me.retucio.sputnik.event;
|
||||||
|
|
||||||
import java.lang.annotation.*;
|
import java.lang.annotation.*;
|
||||||
|
|
||||||
+3
-3
@@ -1,11 +1,11 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.ClientWorldMixin#onAddEntity
|
* @see me.retucio.sputnik.mixin.ClientWorldMixin#onAddEntity
|
||||||
*/
|
*/
|
||||||
public class AddEntityEvent extends Event {
|
public class AddEntityEvent extends Event {
|
||||||
|
|
||||||
+3
-3
@@ -1,11 +1,11 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.ClientPlayerInteractionManagerMixin#onAttackEntity
|
* @see me.retucio.sputnik.mixin.ClientPlayerInteractionManagerMixin#onAttackEntity
|
||||||
*/
|
*/
|
||||||
public class AttackEntityEvent extends Event {
|
public class AttackEntityEvent extends Event {
|
||||||
|
|
||||||
+3
-3
@@ -1,11 +1,11 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.ClientPlayerInteractionManagerMixin#onBlockBreak
|
* @see me.retucio.sputnik.mixin.ClientPlayerInteractionManagerMixin#onBlockBreak
|
||||||
*/
|
*/
|
||||||
public class BreakBlockEvent extends Event {
|
public class BreakBlockEvent extends Event {
|
||||||
|
|
||||||
+5
-5
@@ -1,12 +1,12 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.EntityMixin#onRotation
|
* @see me.retucio.sputnik.mixin.EntityMixin#onRotation
|
||||||
* @see me.retucio.camtweaks.mixin.EntityMixin#onChangeYaw
|
* @see me.retucio.sputnik.mixin.EntityMixin#onChangeYaw
|
||||||
* @see me.retucio.camtweaks.mixin.EntityMixin#onChangePitch
|
* @see me.retucio.sputnik.mixin.EntityMixin#onChangePitch
|
||||||
*/
|
*/
|
||||||
public class ChangeRotationEvent extends Event {
|
public class ChangeRotationEvent extends Event {
|
||||||
|
|
||||||
@@ -0,0 +1,9 @@
|
|||||||
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
|
import me.retucio.sputnik.event.Event;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see me.retucio.sputnik.mixin.ChunkOcclusionDataBuilderMixin#onChunkOcclusion
|
||||||
|
*/
|
||||||
|
public class ChunkOcclusionEvent extends Event {}
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.module.modules.misc.ChatPlus;
|
import me.retucio.sputnik.module.modules.misc.ChatPlus;
|
||||||
import net.minecraft.text.ClickEvent;
|
import net.minecraft.text.ClickEvent;
|
||||||
|
|
||||||
|
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
|
|
||||||
public class ClipAtLedgeEvent extends Event {
|
public class ClipAtLedgeEvent extends Event {
|
||||||
|
|
||||||
+3
-3
@@ -1,11 +1,11 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.ItemStackMixin#onDamage
|
* @see me.retucio.sputnik.mixin.ItemStackMixin#onDamage
|
||||||
*/
|
*/
|
||||||
public class DamageItemEvent extends Event {
|
public class DamageItemEvent extends Event {
|
||||||
|
|
||||||
+3
-3
@@ -1,12 +1,12 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import net.minecraft.client.network.ServerInfo;
|
import net.minecraft.client.network.ServerInfo;
|
||||||
import net.minecraft.network.DisconnectionInfo;
|
import net.minecraft.network.DisconnectionInfo;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.ClientConnectionMixin#onDisconnect
|
* @see me.retucio.sputnik.mixin.ClientConnectionMixin#onDisconnect
|
||||||
*/
|
*/
|
||||||
public class DisconnectEvent extends Event {
|
public class DisconnectEvent extends Event {
|
||||||
|
|
||||||
+3
-3
@@ -1,10 +1,10 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.GameRendererMixin#modifyFov
|
* @see me.retucio.sputnik.mixin.GameRendererMixin#modifyFov
|
||||||
*/
|
*/
|
||||||
public class GetFOVEvent extends Event {
|
public class GetFOVEvent extends Event {
|
||||||
|
|
||||||
+3
-3
@@ -1,12 +1,12 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.util.Hand;
|
import net.minecraft.util.Hand;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.ClientPlayerInteractionManagerMixin#onEntityInteract
|
* @see me.retucio.sputnik.mixin.ClientPlayerInteractionManagerMixin#onEntityInteract
|
||||||
*/
|
*/
|
||||||
public class InteractEntityEvent extends Event {
|
public class InteractEntityEvent extends Event {
|
||||||
|
|
||||||
+3
-3
@@ -1,10 +1,10 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.KeyboardMixin#onKeyPress
|
* @see me.retucio.sputnik.mixin.KeyboardMixin#onKeyPress
|
||||||
*/
|
*/
|
||||||
public class KeyEvent extends Event {
|
public class KeyEvent extends Event {
|
||||||
|
|
||||||
+3
-3
@@ -1,10 +1,10 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.MouseMixin#onMouseButton
|
* @see me.retucio.sputnik.mixin.MouseMixin#onMouseButton
|
||||||
*/
|
*/
|
||||||
public class MouseClickEvent extends Event {
|
public class MouseClickEvent extends Event {
|
||||||
|
|
||||||
+3
-3
@@ -1,10 +1,10 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.MouseMixin#onMouseScroll
|
* @see me.retucio.sputnik.mixin.MouseMixin#onMouseScroll
|
||||||
*/
|
*/
|
||||||
public class MouseScrollEvent extends Event {
|
public class MouseScrollEvent extends Event {
|
||||||
|
|
||||||
+3
-3
@@ -1,11 +1,11 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import net.minecraft.client.gui.screen.Screen;
|
import net.minecraft.client.gui.screen.Screen;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.MinecraftClientMixin#onOpenScreen
|
* @see me.retucio.sputnik.mixin.MinecraftClientMixin#onOpenScreen
|
||||||
*/
|
*/
|
||||||
public class OpenScreenEvent extends Event {
|
public class OpenScreenEvent extends Event {
|
||||||
|
|
||||||
+6
-8
@@ -1,16 +1,14 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import io.netty.channel.ChannelFutureListener;
|
import me.retucio.sputnik.event.Event;
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Stage;
|
||||||
import me.retucio.camtweaks.event.Stage;
|
|
||||||
import net.minecraft.network.packet.Packet;
|
import net.minecraft.network.packet.Packet;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.ClientConnectionMixin#onSendPacketPre
|
* @see me.retucio.sputnik.mixin.ClientConnectionMixin#onSendPacketPre
|
||||||
* @see me.retucio.camtweaks.mixin.ClientConnectionMixin#onSendPacketPost
|
* @see me.retucio.sputnik.mixin.ClientConnectionMixin#onSendPacketPost
|
||||||
* @see me.retucio.camtweaks.mixin.ClientConnectionMixin#onReceivePacket
|
* @see me.retucio.sputnik.mixin.ClientConnectionMixin#onReceivePacket
|
||||||
*/
|
*/
|
||||||
public class PacketEvent {
|
public class PacketEvent {
|
||||||
|
|
||||||
+3
-3
@@ -1,11 +1,11 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import net.minecraft.client.option.Perspective;
|
import net.minecraft.client.option.Perspective;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.GameOptionsMixin#changePerspective
|
* @see me.retucio.sputnik.mixin.GameOptionsMixin#changePerspective
|
||||||
*/
|
*/
|
||||||
public class PerspectiveChangeEvent extends Event {
|
public class PerspectiveChangeEvent extends Event {
|
||||||
|
|
||||||
+3
-3
@@ -1,12 +1,12 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import net.minecraft.util.Hand;
|
import net.minecraft.util.Hand;
|
||||||
import net.minecraft.util.hit.BlockHitResult;
|
import net.minecraft.util.hit.BlockHitResult;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.ClientPlayerInteractionManagerMixin#onBlockPlace
|
* @see me.retucio.sputnik.mixin.ClientPlayerInteractionManagerMixin#onBlockPlace
|
||||||
*/
|
*/
|
||||||
public class PlaceBlockEvent extends Event {
|
public class PlaceBlockEvent extends Event {
|
||||||
|
|
||||||
+3
-3
@@ -1,11 +1,11 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import net.minecraft.client.gui.hud.MessageIndicator;
|
import net.minecraft.client.gui.hud.MessageIndicator;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.ChatHudMixin#onAddMessage
|
* @see me.retucio.sputnik.mixin.ChatHudMixin#onAddMessage
|
||||||
*/
|
*/
|
||||||
public class ReceiveMessageEvent extends Event {
|
public class ReceiveMessageEvent extends Event {
|
||||||
|
|
||||||
+3
-3
@@ -1,11 +1,11 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.ClientWorldMixin#onRemoveEntity
|
* @see me.retucio.sputnik.mixin.ClientWorldMixin#onRemoveEntity
|
||||||
*/
|
*/
|
||||||
public class RemoveEntityEvent extends Event {
|
public class RemoveEntityEvent extends Event {
|
||||||
|
|
||||||
+3
-3
@@ -1,12 +1,12 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.util.Hand;
|
import net.minecraft.util.Hand;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.HeldItemRendererMixin#onRenderArm
|
* @see me.retucio.sputnik.mixin.HeldItemRendererMixin#onRenderArm
|
||||||
*/
|
*/
|
||||||
public class RenderArmEvent extends Event {
|
public class RenderArmEvent extends Event {
|
||||||
|
|
||||||
+5
-5
@@ -1,6 +1,6 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import net.minecraft.client.gui.hud.ClientBossBar;
|
import net.minecraft.client.gui.hud.ClientBossBar;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
|
|
||||||
@@ -8,9 +8,9 @@ import java.util.Iterator;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.BossBarHudMixin#modifyBossBarIterator
|
* @see me.retucio.sputnik.mixin.BossBarHudMixin#modifyBossBarIterator
|
||||||
* @see me.retucio.camtweaks.mixin.BossBarHudMixin#modifyBossBarName
|
* @see me.retucio.sputnik.mixin.BossBarHudMixin#modifyBossBarName
|
||||||
* @see me.retucio.camtweaks.mixin.BossBarHudMixin#modifySpacingConstant
|
* @see me.retucio.sputnik.mixin.BossBarHudMixin#modifySpacingConstant
|
||||||
*/
|
*/
|
||||||
public class RenderBossbarEvent {
|
public class RenderBossbarEvent {
|
||||||
|
|
||||||
+3
-3
@@ -1,12 +1,12 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
import net.minecraft.util.Hand;
|
import net.minecraft.util.Hand;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.HeldItemRendererMixin#onRenderItem
|
* @see me.retucio.sputnik.mixin.HeldItemRendererMixin#onRenderItem
|
||||||
*/
|
*/
|
||||||
public class RenderHeldItemEvent extends Event {
|
public class RenderHeldItemEvent extends Event {
|
||||||
|
|
||||||
+3
-3
@@ -1,13 +1,13 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import net.minecraft.client.render.Camera;
|
import net.minecraft.client.render.Camera;
|
||||||
import net.minecraft.client.render.RenderTickCounter;
|
import net.minecraft.client.render.RenderTickCounter;
|
||||||
import net.minecraft.client.util.math.MatrixStack;
|
import net.minecraft.client.util.math.MatrixStack;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.WorldRendererMixin#render
|
* @see me.retucio.sputnik.mixin.WorldRendererMixin#render
|
||||||
*/
|
*/
|
||||||
public class RenderWorldEvent extends Event {
|
public class RenderWorldEvent extends Event {
|
||||||
|
|
||||||
+3
-3
@@ -1,10 +1,10 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.ClientPlayNetworkHandlerMixin#onSendMessage
|
* @see me.retucio.sputnik.mixin.ClientPlayNetworkHandlerMixin#onSendMessage
|
||||||
*/
|
*/
|
||||||
public class SendMessageEvent extends Event {
|
public class SendMessageEvent extends Event {
|
||||||
|
|
||||||
@@ -0,0 +1,12 @@
|
|||||||
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
|
import me.retucio.sputnik.event.Event;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see me.retucio.sputnik.mixin.MinecraftClientMixin#onStop
|
||||||
|
*/
|
||||||
|
public class ShutdownEvent extends Event {
|
||||||
|
|
||||||
|
public ShutdownEvent() {}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
|
import me.retucio.sputnik.event.Event;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see me.retucio.sputnik.mixin.MinecraftClientMixin#onTickPre
|
||||||
|
* @see me.retucio.sputnik.mixin.MinecraftClientMixin#onTickPost
|
||||||
|
*/
|
||||||
|
public class TickEvent {
|
||||||
|
|
||||||
|
public static class Pre extends Event {}
|
||||||
|
public static class Post extends Event {}
|
||||||
|
}
|
||||||
+3
-3
@@ -1,12 +1,12 @@
|
|||||||
package me.retucio.camtweaks.event.events;
|
package me.retucio.sputnik.event.events;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.util.Hand;
|
import net.minecraft.util.Hand;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see me.retucio.camtweaks.mixin.MinecraftClientMixin#onUseItem
|
* @see me.retucio.sputnik.mixin.MinecraftClientMixin#onUseItem
|
||||||
*/
|
*/
|
||||||
public class UseItemEvent extends Event {
|
public class UseItemEvent extends Event {
|
||||||
|
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
package me.retucio.camtweaks.event.events.camtweaks;
|
package me.retucio.sputnik.event.events.sputnik;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
|
|
||||||
// se genera cada que se interactúa con el marco de ajustes de la interfaz
|
// se genera cada que se interactúa con el marco de ajustes de la interfaz
|
||||||
public class GUISettingsFrameEvent {
|
public class GUISettingsFrameEvent {
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
package me.retucio.camtweaks.event.events.camtweaks;
|
package me.retucio.sputnik.event.events.sputnik;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
|
|
||||||
// se genera cuando carga la interfaz del mod
|
// se genera cuando carga la interfaz del mod
|
||||||
public class LoadClickGUIEvent extends Event {}
|
public class LoadClickGUIEvent extends Event {}
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
package me.retucio.camtweaks.event.events.camtweaks;
|
package me.retucio.sputnik.event.events.sputnik;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
|
|
||||||
// se genera cuando carga el gestor de comandos
|
// se genera cuando carga el gestor de comandos
|
||||||
public class LoadCommandManagerEvent extends Event {}
|
public class LoadCommandManagerEvent extends Event {}
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
package me.retucio.sputnik.event.events.sputnik;
|
||||||
|
|
||||||
|
import me.retucio.sputnik.event.Event;
|
||||||
|
|
||||||
|
public class LoadConfigEvent extends Event {
|
||||||
|
|
||||||
|
private final boolean failed;
|
||||||
|
private final boolean fileExisted;
|
||||||
|
|
||||||
|
|
||||||
|
public LoadConfigEvent(boolean failed, boolean fileExisted) {
|
||||||
|
this.failed = failed;
|
||||||
|
this.fileExisted = fileExisted;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean hasFailed() {
|
||||||
|
return failed;
|
||||||
|
}
|
||||||
|
|
||||||
|
public boolean didFileExist() {
|
||||||
|
return fileExisted;
|
||||||
|
}
|
||||||
|
}
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
package me.retucio.camtweaks.event.events.camtweaks;
|
package me.retucio.sputnik.event.events.sputnik;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
|
|
||||||
// se genera cuando carga el gestor de módulos
|
// se genera cuando carga el gestor de módulos
|
||||||
public class LoadModuleManagerEvent extends Event {}
|
public class LoadModuleManagerEvent extends Event {}
|
||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
package me.retucio.camtweaks.event.events.camtweaks;
|
package me.retucio.sputnik.event.events.sputnik;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
|
|
||||||
// se genera cada que se interactúa con el marco de módulos
|
// se genera cada que se interactúa con el marco de módulos
|
||||||
public class ModuleFrameEvent {
|
public class ModuleFrameEvent {
|
||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
package me.retucio.camtweaks.event.events.camtweaks;
|
package me.retucio.sputnik.event.events.sputnik;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import me.retucio.camtweaks.ui.widgets.frames.SettingsFrame;
|
import me.retucio.sputnik.ui.widgets.frames.SettingsFrame;
|
||||||
|
|
||||||
// se genera cada que se interactúa con un marco de ajustes de un módulo
|
// se genera cada que se interactúa con un marco de ajustes de un módulo
|
||||||
public class SettingsFrameEvent {
|
public class SettingsFrameEvent {
|
||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
package me.retucio.camtweaks.event.events.camtweaks;
|
package me.retucio.sputnik.event.events.sputnik;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import me.retucio.camtweaks.module.Module;
|
import me.retucio.sputnik.module.Module;
|
||||||
|
|
||||||
// se genera cada que se enciende o apaga un módulo
|
// se genera cada que se enciende o apaga un módulo
|
||||||
public class ToggleModuleEvent extends Event {
|
public class ToggleModuleEvent extends Event {
|
||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
package me.retucio.camtweaks.event.events.camtweaks;
|
package me.retucio.sputnik.event.events.sputnik;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.Event;
|
import me.retucio.sputnik.event.Event;
|
||||||
import me.retucio.camtweaks.module.settings.Setting;
|
import me.retucio.sputnik.module.settings.Setting;
|
||||||
|
|
||||||
// se genera cada que se cambia el valor de un ajuste
|
// se genera cada que se cambia el valor de un ajuste
|
||||||
public class UpdateSettingEvent extends Event {
|
public class UpdateSettingEvent extends Event {
|
||||||
+3
-3
@@ -1,8 +1,8 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
|
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
|
||||||
import com.llamalad7.mixinextras.sugar.Local;
|
import com.llamalad7.mixinextras.sugar.Local;
|
||||||
import me.retucio.camtweaks.event.events.RenderBossbarEvent;
|
import me.retucio.sputnik.event.events.RenderBossbarEvent;
|
||||||
import net.minecraft.client.gui.hud.BossBarHud;
|
import net.minecraft.client.gui.hud.BossBarHud;
|
||||||
import net.minecraft.client.gui.hud.ClientBossBar;
|
import net.minecraft.client.gui.hud.ClientBossBar;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
@@ -13,7 +13,7 @@ import org.spongepowered.asm.mixin.injection.ModifyConstant;
|
|||||||
|
|
||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
|
|
||||||
import static me.retucio.camtweaks.CameraTweaks.EVENT_BUS;
|
import static me.retucio.sputnik.Sputnik.EVENT_BUS;
|
||||||
|
|
||||||
@Mixin(BossBarHud.class)
|
@Mixin(BossBarHud.class)
|
||||||
public abstract class BossBarHudMixin {
|
public abstract class BossBarHudMixin {
|
||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import it.unimi.dsi.fastutil.objects.Object2ObjectLinkedOpenHashMap;
|
import it.unimi.dsi.fastutil.objects.Object2ObjectLinkedOpenHashMap;
|
||||||
import me.retucio.camtweaks.util.render.GlintRenderLayer;
|
import me.retucio.sputnik.util.render.GlintRenderLayer;
|
||||||
import net.minecraft.client.render.BufferBuilderStorage;
|
import net.minecraft.client.render.BufferBuilderStorage;
|
||||||
import net.minecraft.client.render.RenderLayer;
|
import net.minecraft.client.render.RenderLayer;
|
||||||
import net.minecraft.client.util.BufferAllocator;
|
import net.minecraft.client.util.BufferAllocator;
|
||||||
+5
-5
@@ -1,9 +1,9 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.camera.Freelook;
|
import me.retucio.sputnik.module.modules.camera.Freelook;
|
||||||
import me.retucio.camtweaks.module.modules.camera.Freecam;
|
import me.retucio.sputnik.module.modules.camera.Freecam;
|
||||||
import me.retucio.camtweaks.module.modules.camera.PerspectivePlus;
|
import me.retucio.sputnik.module.modules.camera.PerspectivePlus;
|
||||||
import net.minecraft.client.render.Camera;
|
import net.minecraft.client.render.Camera;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import net.minecraft.world.World;
|
import net.minecraft.world.World;
|
||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import com.mojang.authlib.GameProfile;
|
import com.mojang.authlib.GameProfile;
|
||||||
import me.retucio.camtweaks.util.interfaces.IChatHudLine;
|
import me.retucio.sputnik.util.interfaces.IChatHudLine;
|
||||||
import net.minecraft.client.gui.hud.ChatHudLine;
|
import net.minecraft.client.gui.hud.ChatHudLine;
|
||||||
import net.minecraft.text.Text;
|
import net.minecraft.text.Text;
|
||||||
import org.spongepowered.asm.mixin.Final;
|
import org.spongepowered.asm.mixin.Final;
|
||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import com.mojang.authlib.GameProfile;
|
import com.mojang.authlib.GameProfile;
|
||||||
import me.retucio.camtweaks.util.interfaces.IChatHudLineVisible;
|
import me.retucio.sputnik.util.interfaces.IChatHudLineVisible;
|
||||||
import net.minecraft.client.gui.hud.ChatHudLine;
|
import net.minecraft.client.gui.hud.ChatHudLine;
|
||||||
import net.minecraft.text.OrderedText;
|
import net.minecraft.text.OrderedText;
|
||||||
import org.spongepowered.asm.mixin.Final;
|
import org.spongepowered.asm.mixin.Final;
|
||||||
+9
-9
@@ -1,14 +1,14 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
|
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
|
||||||
import com.llamalad7.mixinextras.sugar.Local;
|
import com.llamalad7.mixinextras.sugar.Local;
|
||||||
import me.retucio.camtweaks.event.events.ReceiveMessageEvent;
|
import me.retucio.sputnik.event.events.ReceiveMessageEvent;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.misc.ChatPlus;
|
import me.retucio.sputnik.module.modules.misc.ChatPlus;
|
||||||
import me.retucio.camtweaks.util.interfaces.IChatHud;
|
import me.retucio.sputnik.util.interfaces.IChatHud;
|
||||||
import me.retucio.camtweaks.util.interfaces.IChatHudLine;
|
import me.retucio.sputnik.util.interfaces.IChatHudLine;
|
||||||
import me.retucio.camtweaks.util.interfaces.IChatHudLineVisible;
|
import me.retucio.sputnik.util.interfaces.IChatHudLineVisible;
|
||||||
import me.retucio.camtweaks.util.interfaces.IMessageHandler;
|
import me.retucio.sputnik.util.interfaces.IMessageHandler;
|
||||||
import net.minecraft.client.MinecraftClient;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.client.gui.hud.ChatHud;
|
import net.minecraft.client.gui.hud.ChatHud;
|
||||||
import net.minecraft.client.gui.hud.ChatHudLine;
|
import net.minecraft.client.gui.hud.ChatHudLine;
|
||||||
@@ -27,7 +27,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static me.retucio.camtweaks.CameraTweaks.*;
|
import static me.retucio.sputnik.Sputnik.*;
|
||||||
|
|
||||||
@Mixin(ChatHud.class)
|
@Mixin(ChatHud.class)
|
||||||
public abstract class ChatHudMixin implements IChatHud {
|
public abstract class ChatHudMixin implements IChatHud {
|
||||||
+3
-3
@@ -1,10 +1,10 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import com.llamalad7.mixinextras.sugar.Local;
|
import com.llamalad7.mixinextras.sugar.Local;
|
||||||
import com.mojang.brigadier.ParseResults;
|
import com.mojang.brigadier.ParseResults;
|
||||||
import com.mojang.brigadier.StringReader;
|
import com.mojang.brigadier.StringReader;
|
||||||
import com.mojang.brigadier.suggestion.Suggestions;
|
import com.mojang.brigadier.suggestion.Suggestions;
|
||||||
import me.retucio.camtweaks.command.CommandManager;
|
import me.retucio.sputnik.command.CommandManager;
|
||||||
import net.minecraft.client.gui.screen.ChatInputSuggestor;
|
import net.minecraft.client.gui.screen.ChatInputSuggestor;
|
||||||
import net.minecraft.client.gui.widget.TextFieldWidget;
|
import net.minecraft.client.gui.widget.TextFieldWidget;
|
||||||
import net.minecraft.command.CommandSource;
|
import net.minecraft.command.CommandSource;
|
||||||
@@ -17,7 +17,7 @@ import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
|||||||
|
|
||||||
import java.util.concurrent.CompletableFuture;
|
import java.util.concurrent.CompletableFuture;
|
||||||
|
|
||||||
import static me.retucio.camtweaks.CameraTweaks.mc;
|
import static me.retucio.sputnik.Sputnik.mc;
|
||||||
|
|
||||||
@Mixin(ChatInputSuggestor.class)
|
@Mixin(ChatInputSuggestor.class)
|
||||||
public abstract class ChatInputSuggestorMixin {
|
public abstract class ChatInputSuggestorMixin {
|
||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.misc.ChatPlus;
|
import me.retucio.sputnik.module.modules.misc.ChatPlus;
|
||||||
import net.minecraft.client.gui.screen.ChatScreen;
|
import net.minecraft.client.gui.screen.ChatScreen;
|
||||||
import net.minecraft.client.gui.widget.TextFieldWidget;
|
import net.minecraft.client.gui.widget.TextFieldWidget;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
+3
-3
@@ -1,8 +1,8 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
|
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.camera.Freecam;
|
import me.retucio.sputnik.module.modules.camera.Freecam;
|
||||||
import net.minecraft.client.MinecraftClient;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.client.render.debug.ChunkBorderDebugRenderer;
|
import net.minecraft.client.render.debug.ChunkBorderDebugRenderer;
|
||||||
import net.minecraft.util.math.ChunkSectionPos;
|
import net.minecraft.util.math.ChunkSectionPos;
|
||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.events.ChunkOcclusionEvent;
|
import me.retucio.sputnik.event.events.ChunkOcclusionEvent;
|
||||||
import net.minecraft.client.render.chunk.ChunkOcclusionDataBuilder;
|
import net.minecraft.client.render.chunk.ChunkOcclusionDataBuilder;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
@@ -8,7 +8,7 @@ import org.spongepowered.asm.mixin.injection.At;
|
|||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
import static me.retucio.camtweaks.CameraTweaks.EVENT_BUS;
|
import static me.retucio.sputnik.Sputnik.EVENT_BUS;
|
||||||
|
|
||||||
@Mixin(ChunkOcclusionDataBuilder.class)
|
@Mixin(ChunkOcclusionDataBuilder.class)
|
||||||
public abstract class ChunkOcclusionDataBuilderMixin {
|
public abstract class ChunkOcclusionDataBuilderMixin {
|
||||||
+6
-6
@@ -1,10 +1,10 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import me.retucio.camtweaks.mixin.accessor.ConfirmServerResourcePackScreenAccessor;
|
import me.retucio.sputnik.mixin.accessor.ConfirmServerResourcePackScreenAccessor;
|
||||||
import me.retucio.camtweaks.mixin.accessor.PackAccessor;
|
import me.retucio.sputnik.mixin.accessor.PackAccessor;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.network.RPackBypass;
|
import me.retucio.sputnik.module.modules.network.RPackBypass;
|
||||||
import me.retucio.camtweaks.util.interfaces.IConfirmScreen;
|
import me.retucio.sputnik.util.interfaces.IConfirmScreen;
|
||||||
import net.minecraft.client.MinecraftClient;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.client.gui.screen.Screen;
|
import net.minecraft.client.gui.screen.Screen;
|
||||||
import net.minecraft.client.network.ClientCommonNetworkHandler;
|
import net.minecraft.client.network.ClientCommonNetworkHandler;
|
||||||
+6
-6
@@ -1,10 +1,10 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import io.netty.channel.ChannelFutureListener;
|
import io.netty.channel.ChannelFutureListener;
|
||||||
import io.netty.channel.ChannelHandlerContext;
|
import io.netty.channel.ChannelHandlerContext;
|
||||||
import me.retucio.camtweaks.event.Stage;
|
import me.retucio.sputnik.event.Stage;
|
||||||
import me.retucio.camtweaks.event.events.DisconnectEvent;
|
import me.retucio.sputnik.event.events.DisconnectEvent;
|
||||||
import me.retucio.camtweaks.event.events.PacketEvent;
|
import me.retucio.sputnik.event.events.PacketEvent;
|
||||||
import net.minecraft.network.ClientConnection;
|
import net.minecraft.network.ClientConnection;
|
||||||
import net.minecraft.network.DisconnectionInfo;
|
import net.minecraft.network.DisconnectionInfo;
|
||||||
import net.minecraft.network.packet.Packet;
|
import net.minecraft.network.packet.Packet;
|
||||||
@@ -13,8 +13,8 @@ import org.spongepowered.asm.mixin.injection.At;
|
|||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
import static me.retucio.camtweaks.CameraTweaks.EVENT_BUS;
|
import static me.retucio.sputnik.Sputnik.EVENT_BUS;
|
||||||
import static me.retucio.camtweaks.CameraTweaks.mc;
|
import static me.retucio.sputnik.Sputnik.mc;
|
||||||
|
|
||||||
@Mixin(ClientConnection.class)
|
@Mixin(ClientConnection.class)
|
||||||
public abstract class ClientConnectionMixin {
|
public abstract class ClientConnectionMixin {
|
||||||
+7
-7
@@ -1,11 +1,11 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import com.mojang.brigadier.exceptions.CommandSyntaxException;
|
import com.mojang.brigadier.exceptions.CommandSyntaxException;
|
||||||
import me.retucio.camtweaks.command.CommandManager;
|
import me.retucio.sputnik.command.CommandManager;
|
||||||
import me.retucio.camtweaks.event.events.SendMessageEvent;
|
import me.retucio.sputnik.event.events.SendMessageEvent;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.render.NoRender;
|
import me.retucio.sputnik.module.modules.render.NoRender;
|
||||||
import me.retucio.camtweaks.util.ChatUtil;
|
import me.retucio.sputnik.util.ChatUtil;
|
||||||
import net.minecraft.client.network.ClientPlayNetworkHandler;
|
import net.minecraft.client.network.ClientPlayNetworkHandler;
|
||||||
import net.minecraft.client.render.GameRenderer;
|
import net.minecraft.client.render.GameRenderer;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
@@ -17,7 +17,7 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
|||||||
import org.spongepowered.asm.mixin.injection.Redirect;
|
import org.spongepowered.asm.mixin.injection.Redirect;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
import static me.retucio.camtweaks.CameraTweaks.*;
|
import static me.retucio.sputnik.Sputnik.*;
|
||||||
|
|
||||||
@Mixin(ClientPlayNetworkHandler.class)
|
@Mixin(ClientPlayNetworkHandler.class)
|
||||||
public abstract class ClientPlayNetworkHandlerMixin {
|
public abstract class ClientPlayNetworkHandlerMixin {
|
||||||
+5
-5
@@ -1,11 +1,11 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
|
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
|
||||||
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
|
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
|
||||||
import com.llamalad7.mixinextras.sugar.Local;
|
import com.llamalad7.mixinextras.sugar.Local;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.world.NoMiningInterruptions;
|
import me.retucio.sputnik.module.modules.world.NoMiningInterruptions;
|
||||||
import me.retucio.camtweaks.module.modules.player.PortalGUI;
|
import me.retucio.sputnik.module.modules.player.PortalGUI;
|
||||||
import net.minecraft.client.gui.screen.Screen;
|
import net.minecraft.client.gui.screen.Screen;
|
||||||
import net.minecraft.client.network.ClientPlayerEntity;
|
import net.minecraft.client.network.ClientPlayerEntity;
|
||||||
import net.minecraft.util.hit.EntityHitResult;
|
import net.minecraft.util.hit.EntityHitResult;
|
||||||
@@ -16,7 +16,7 @@ import org.spongepowered.asm.mixin.Mixin;
|
|||||||
import org.spongepowered.asm.mixin.Shadow;
|
import org.spongepowered.asm.mixin.Shadow;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
|
|
||||||
import static me.retucio.camtweaks.CameraTweaks.mc;
|
import static me.retucio.sputnik.Sputnik.mc;
|
||||||
|
|
||||||
@Mixin(ClientPlayerEntity.class)
|
@Mixin(ClientPlayerEntity.class)
|
||||||
public abstract class ClientPlayerEntityMixin {
|
public abstract class ClientPlayerEntityMixin {
|
||||||
+9
-9
@@ -1,11 +1,11 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.events.AttackEntityEvent;
|
import me.retucio.sputnik.event.events.AttackEntityEvent;
|
||||||
import me.retucio.camtweaks.event.events.BreakBlockEvent;
|
import me.retucio.sputnik.event.events.BreakBlockEvent;
|
||||||
import me.retucio.camtweaks.event.events.InteractEntityEvent;
|
import me.retucio.sputnik.event.events.InteractEntityEvent;
|
||||||
import me.retucio.camtweaks.event.events.PlaceBlockEvent;
|
import me.retucio.sputnik.event.events.PlaceBlockEvent;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.camera.Freecam;
|
import me.retucio.sputnik.module.modules.camera.Freecam;
|
||||||
import net.minecraft.client.MinecraftClient;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.client.network.ClientPlayNetworkHandler;
|
import net.minecraft.client.network.ClientPlayNetworkHandler;
|
||||||
import net.minecraft.client.network.ClientPlayerEntity;
|
import net.minecraft.client.network.ClientPlayerEntity;
|
||||||
@@ -25,8 +25,8 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
|||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||||
|
|
||||||
import static me.retucio.camtweaks.CameraTweaks.EVENT_BUS;
|
import static me.retucio.sputnik.Sputnik.EVENT_BUS;
|
||||||
import static me.retucio.camtweaks.CameraTweaks.mc;
|
import static me.retucio.sputnik.Sputnik.mc;
|
||||||
|
|
||||||
@Mixin(ClientPlayerInteractionManager.class)
|
@Mixin(ClientPlayerInteractionManager.class)
|
||||||
public abstract class ClientPlayerInteractionManagerMixin {
|
public abstract class ClientPlayerInteractionManagerMixin {
|
||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.events.AddEntityEvent;
|
import me.retucio.sputnik.event.events.AddEntityEvent;
|
||||||
import me.retucio.camtweaks.event.events.RemoveEntityEvent;
|
import me.retucio.sputnik.event.events.RemoveEntityEvent;
|
||||||
import net.minecraft.client.world.ClientWorld;
|
import net.minecraft.client.world.ClientWorld;
|
||||||
import net.minecraft.entity.Entity;
|
import net.minecraft.entity.Entity;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
@@ -11,7 +11,7 @@ import org.spongepowered.asm.mixin.injection.At;
|
|||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
import static me.retucio.camtweaks.CameraTweaks.EVENT_BUS;
|
import static me.retucio.sputnik.Sputnik.EVENT_BUS;
|
||||||
|
|
||||||
@Mixin(ClientWorld.class)
|
@Mixin(ClientWorld.class)
|
||||||
public abstract class ClientWorldMixin {
|
public abstract class ClientWorldMixin {
|
||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.world.TimeChanger;
|
import me.retucio.sputnik.module.modules.world.TimeChanger;
|
||||||
import net.minecraft.client.world.ClientWorld;
|
import net.minecraft.client.world.ClientWorld;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
import org.spongepowered.asm.mixin.injection.At;
|
import org.spongepowered.asm.mixin.injection.At;
|
||||||
+4
-4
@@ -1,8 +1,8 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.network.RPackBypass;
|
import me.retucio.sputnik.module.modules.network.RPackBypass;
|
||||||
import me.retucio.camtweaks.util.interfaces.IConfirmScreen;
|
import me.retucio.sputnik.util.interfaces.IConfirmScreen;
|
||||||
import net.minecraft.client.gui.screen.ConfirmScreen;
|
import net.minecraft.client.gui.screen.ConfirmScreen;
|
||||||
import net.minecraft.client.gui.screen.Screen;
|
import net.minecraft.client.gui.screen.Screen;
|
||||||
import net.minecraft.client.gui.widget.ButtonWidget;
|
import net.minecraft.client.gui.widget.ButtonWidget;
|
||||||
+6
-4
@@ -1,8 +1,8 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
|
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.render.CritsPlus;
|
import me.retucio.sputnik.module.modules.render.CritsPlus;
|
||||||
import net.minecraft.client.particle.BillboardParticle;
|
import net.minecraft.client.particle.BillboardParticle;
|
||||||
import net.minecraft.client.particle.DamageParticle;
|
import net.minecraft.client.particle.DamageParticle;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
@@ -14,7 +14,9 @@ public abstract class DamageParticleMixin {
|
|||||||
|
|
||||||
@ModifyReturnValue(method = "getRenderType", at = @At("RETURN"))
|
@ModifyReturnValue(method = "getRenderType", at = @At("RETURN"))
|
||||||
private BillboardParticle.RenderType makeCritsTranslucent(BillboardParticle.RenderType original) {
|
private BillboardParticle.RenderType makeCritsTranslucent(BillboardParticle.RenderType original) {
|
||||||
if (ModuleManager.INSTANCE.getModuleByClass(CritsPlus.class).isEnabled()) return BillboardParticle.RenderType.PARTICLE_ATLAS_TRANSLUCENT;
|
if (ModuleManager.INSTANCE.getModuleByClass(CritsPlus.class).isEnabled())
|
||||||
|
return BillboardParticle.RenderType.PARTICLE_ATLAS_TRANSLUCENT;
|
||||||
|
|
||||||
return original;
|
return original;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.network.Reconnect;
|
import me.retucio.sputnik.module.modules.network.Reconnect;
|
||||||
|
|
||||||
import net.minecraft.client.gui.screen.DisconnectedScreen;
|
import net.minecraft.client.gui.screen.DisconnectedScreen;
|
||||||
import net.minecraft.client.gui.widget.ButtonWidget;
|
import net.minecraft.client.gui.widget.ButtonWidget;
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
|
import me.retucio.sputnik.module.modules.render.CritsPlus;
|
||||||
|
import net.minecraft.client.particle.EmitterParticle;
|
||||||
|
import net.minecraft.client.particle.NoRenderParticle;
|
||||||
|
import net.minecraft.client.world.ClientWorld;
|
||||||
|
import net.minecraft.entity.Entity;
|
||||||
|
import net.minecraft.particle.ParticleEffect;
|
||||||
|
import org.spongepowered.asm.mixin.Final;
|
||||||
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
|
import org.spongepowered.asm.mixin.Overwrite;
|
||||||
|
import org.spongepowered.asm.mixin.Shadow;
|
||||||
|
|
||||||
|
@Mixin(EmitterParticle.class)
|
||||||
|
public abstract class EmitterParticleMixin extends NoRenderParticle {
|
||||||
|
|
||||||
|
@Final @Shadow private Entity entity;
|
||||||
|
@Final @Shadow private ParticleEffect parameters;
|
||||||
|
@Final @Shadow private int maxEmitterAge;
|
||||||
|
@Shadow private int emitterAge;
|
||||||
|
|
||||||
|
protected EmitterParticleMixin(ClientWorld clientWorld, double d, double e, double f) {
|
||||||
|
super(clientWorld, d, e, f);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author retucio
|
||||||
|
* @reason porque no hay otra manera más fácil
|
||||||
|
*/
|
||||||
|
@Overwrite
|
||||||
|
public void tick() {
|
||||||
|
CritsPlus critsPlus = ModuleManager.INSTANCE.getModuleByClass(CritsPlus.class);
|
||||||
|
|
||||||
|
double amount = 16 * (critsPlus.isEnabled()
|
||||||
|
? critsPlus.multiplier.getValue()
|
||||||
|
: 1);
|
||||||
|
|
||||||
|
for (int i = 0; i < amount; i++) {
|
||||||
|
double d = this.random.nextFloat() * 2.0F - 1.0F;
|
||||||
|
double e = this.random.nextFloat() * 2.0F - 1.0F;
|
||||||
|
double f = this.random.nextFloat() * 2.0F - 1.0F;
|
||||||
|
if (!(d * d + e * e + f * f > 1.0)) {
|
||||||
|
double g = this.entity.getBodyX(d / 4.0);
|
||||||
|
double h = this.entity.getBodyY(0.5 + e / 4.0);
|
||||||
|
double j = this.entity.getBodyZ(f / 4.0);
|
||||||
|
this.world.addParticleClient(this.parameters, g, h, j, d, e + 0.2, f);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
this.emitterAge++;
|
||||||
|
if (this.emitterAge >= this.maxEmitterAge) {
|
||||||
|
this.markDead();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
+10
-10
@@ -1,13 +1,13 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
|
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
|
||||||
import me.retucio.camtweaks.event.events.ChangeRotationEvent;
|
import me.retucio.sputnik.event.events.ChangeRotationEvent;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.camera.Freecam;
|
import me.retucio.sputnik.module.modules.camera.Freecam;
|
||||||
import me.retucio.camtweaks.module.modules.camera.Freelook;
|
import me.retucio.sputnik.module.modules.camera.Freelook;
|
||||||
import me.retucio.camtweaks.module.modules.camera.Rotations;
|
import me.retucio.sputnik.module.modules.camera.Rotations;
|
||||||
import me.retucio.camtweaks.module.modules.misc.AntiInvis;
|
import me.retucio.sputnik.module.modules.misc.AntiInvis;
|
||||||
import me.retucio.camtweaks.module.modules.render.Nametags;
|
import me.retucio.sputnik.module.modules.render.Nametags;
|
||||||
import net.minecraft.entity.*;
|
import net.minecraft.entity.*;
|
||||||
import net.minecraft.entity.passive.TameableEntity;
|
import net.minecraft.entity.passive.TameableEntity;
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
@@ -23,8 +23,8 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
|||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;
|
||||||
|
|
||||||
import static me.retucio.camtweaks.CameraTweaks.EVENT_BUS;
|
import static me.retucio.sputnik.Sputnik.EVENT_BUS;
|
||||||
import static me.retucio.camtweaks.CameraTweaks.mc;
|
import static me.retucio.sputnik.Sputnik.mc;
|
||||||
|
|
||||||
@Mixin(Entity.class)
|
@Mixin(Entity.class)
|
||||||
public abstract class EntityMixin {
|
public abstract class EntityMixin {
|
||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.render.GlintPlus;
|
import me.retucio.sputnik.module.modules.render.GlintPlus;
|
||||||
import net.minecraft.client.render.RenderLayer;
|
import net.minecraft.client.render.RenderLayer;
|
||||||
import net.minecraft.client.render.entity.equipment.EquipmentRenderer;
|
import net.minecraft.client.render.entity.equipment.EquipmentRenderer;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
+3
-3
@@ -1,9 +1,9 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
|
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
|
||||||
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
|
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.render.NoRender;
|
import me.retucio.sputnik.module.modules.render.NoRender;
|
||||||
import net.minecraft.block.enums.CameraSubmersionType;
|
import net.minecraft.block.enums.CameraSubmersionType;
|
||||||
import net.minecraft.client.render.Camera;
|
import net.minecraft.client.render.Camera;
|
||||||
import net.minecraft.client.render.fog.FogModifier;
|
import net.minecraft.client.render.fog.FogModifier;
|
||||||
+5
-5
@@ -1,8 +1,8 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.events.PerspectiveChangeEvent;
|
import me.retucio.sputnik.event.events.PerspectiveChangeEvent;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.camera.Freecam;
|
import me.retucio.sputnik.module.modules.camera.Freecam;
|
||||||
import net.minecraft.client.option.GameOptions;
|
import net.minecraft.client.option.GameOptions;
|
||||||
import net.minecraft.client.option.Perspective;
|
import net.minecraft.client.option.Perspective;
|
||||||
import org.spongepowered.asm.mixin.Mixin;
|
import org.spongepowered.asm.mixin.Mixin;
|
||||||
@@ -11,7 +11,7 @@ import org.spongepowered.asm.mixin.injection.At;
|
|||||||
import org.spongepowered.asm.mixin.injection.Inject;
|
import org.spongepowered.asm.mixin.injection.Inject;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
import static me.retucio.camtweaks.CameraTweaks.EVENT_BUS;
|
import static me.retucio.sputnik.Sputnik.EVENT_BUS;
|
||||||
|
|
||||||
@Mixin(GameOptions.class)
|
@Mixin(GameOptions.class)
|
||||||
public abstract class GameOptionsMixin {
|
public abstract class GameOptionsMixin {
|
||||||
+8
-8
@@ -1,12 +1,12 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
|
|
||||||
import me.retucio.camtweaks.event.events.GetFOVEvent;
|
import me.retucio.sputnik.event.events.GetFOVEvent;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.camera.Freecam;
|
import me.retucio.sputnik.module.modules.camera.Freecam;
|
||||||
import me.retucio.camtweaks.module.modules.render.NoRender;
|
import me.retucio.sputnik.module.modules.render.NoRender;
|
||||||
import me.retucio.camtweaks.module.modules.camera.Zoom;
|
import me.retucio.sputnik.module.modules.camera.Zoom;
|
||||||
import me.retucio.camtweaks.util.interfaces.IVec3d;
|
import me.retucio.sputnik.util.interfaces.IVec3d;
|
||||||
|
|
||||||
import net.minecraft.client.MinecraftClient;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.client.render.BufferBuilderStorage;
|
import net.minecraft.client.render.BufferBuilderStorage;
|
||||||
@@ -28,7 +28,7 @@ import org.spongepowered.asm.mixin.injection.ModifyVariable;
|
|||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
|
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
|
||||||
|
|
||||||
import static me.retucio.camtweaks.CameraTweaks.EVENT_BUS;
|
import static me.retucio.sputnik.Sputnik.EVENT_BUS;
|
||||||
|
|
||||||
|
|
||||||
@Mixin(GameRenderer.class)
|
@Mixin(GameRenderer.class)
|
||||||
+5
-6
@@ -1,11 +1,10 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import com.google.gson.Gson;
|
import com.google.gson.Gson;
|
||||||
import com.google.gson.JsonObject;
|
import com.google.gson.JsonObject;
|
||||||
import com.google.gson.JsonParser;
|
import com.google.gson.JsonParser;
|
||||||
import me.retucio.camtweaks.CameraTweaks;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.modules.network.BungeecordSpoofer;
|
||||||
import me.retucio.camtweaks.module.modules.network.BungeecordSpoofer;
|
|
||||||
import net.minecraft.network.packet.c2s.handshake.ConnectionIntent;
|
import net.minecraft.network.packet.c2s.handshake.ConnectionIntent;
|
||||||
import net.minecraft.network.packet.c2s.handshake.HandshakeC2SPacket;
|
import net.minecraft.network.packet.c2s.handshake.HandshakeC2SPacket;
|
||||||
import org.spongepowered.asm.mixin.*;
|
import org.spongepowered.asm.mixin.*;
|
||||||
@@ -19,7 +18,7 @@ import java.net.URL;
|
|||||||
import java.util.concurrent.ExecutorService;
|
import java.util.concurrent.ExecutorService;
|
||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
|
|
||||||
import static me.retucio.camtweaks.CameraTweaks.mc;
|
import static me.retucio.sputnik.Sputnik.mc;
|
||||||
|
|
||||||
@Mixin(HandshakeC2SPacket.class)
|
@Mixin(HandshakeC2SPacket.class)
|
||||||
public abstract class HandshakeC2SPacketMixin {
|
public abstract class HandshakeC2SPacketMixin {
|
||||||
@@ -44,7 +43,7 @@ public abstract class HandshakeC2SPacketMixin {
|
|||||||
|
|
||||||
if (this.intendedState() != ConnectionIntent.LOGIN) return;
|
if (this.intendedState() != ConnectionIntent.LOGIN) return;
|
||||||
|
|
||||||
final String[] spoofedUUID = {CameraTweaks.mc.getSession().getUuidOrNull().toString()};
|
final String[] spoofedUUID = {me.retucio.sputnik.Sputnik.mc.getSession().getUuidOrNull().toString()};
|
||||||
String URL = "https://api.mojang.com/users/profiles/minecraft/" + mc.getSession().getUsername();
|
String URL = "https://api.mojang.com/users/profiles/minecraft/" + mc.getSession().getUsername();
|
||||||
|
|
||||||
executor.execute(() -> {
|
executor.execute(() -> {
|
||||||
+6
-6
@@ -1,10 +1,10 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
|
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
|
||||||
import me.retucio.camtweaks.event.events.RenderHeldItemEvent;
|
import me.retucio.sputnik.event.events.RenderHeldItemEvent;
|
||||||
import me.retucio.camtweaks.event.events.RenderArmEvent;
|
import me.retucio.sputnik.event.events.RenderArmEvent;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.player.HandView;
|
import me.retucio.sputnik.module.modules.player.HandView;
|
||||||
import net.minecraft.client.MinecraftClient;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.client.item.ItemModelManager;
|
import net.minecraft.client.item.ItemModelManager;
|
||||||
import net.minecraft.client.network.AbstractClientPlayerEntity;
|
import net.minecraft.client.network.AbstractClientPlayerEntity;
|
||||||
@@ -24,7 +24,7 @@ import org.spongepowered.asm.mixin.injection.Inject;
|
|||||||
import org.spongepowered.asm.mixin.injection.ModifyArg;
|
import org.spongepowered.asm.mixin.injection.ModifyArg;
|
||||||
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
|
||||||
|
|
||||||
import static me.retucio.camtweaks.CameraTweaks.*;
|
import static me.retucio.sputnik.Sputnik.*;
|
||||||
|
|
||||||
@Mixin(HeldItemRenderer.class)
|
@Mixin(HeldItemRenderer.class)
|
||||||
public abstract class HeldItemRendererMixin {
|
public abstract class HeldItemRendererMixin {
|
||||||
+6
-6
@@ -1,11 +1,11 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
|
import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.misc.ChatPlus;
|
import me.retucio.sputnik.module.modules.misc.ChatPlus;
|
||||||
import me.retucio.camtweaks.module.modules.camera.Freecam;
|
import me.retucio.sputnik.module.modules.camera.Freecam;
|
||||||
import me.retucio.camtweaks.module.modules.render.NoRender;
|
import me.retucio.sputnik.module.modules.render.NoRender;
|
||||||
import me.retucio.camtweaks.ui.hud.HudRenderer;
|
import me.retucio.sputnik.ui.hud.HudRenderer;
|
||||||
import net.minecraft.client.MinecraftClient;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.client.gui.DrawContext;
|
import net.minecraft.client.gui.DrawContext;
|
||||||
import net.minecraft.client.gui.hud.InGameHud;
|
import net.minecraft.client.gui.hud.InGameHud;
|
||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.render.NoRender;
|
import me.retucio.sputnik.module.modules.render.NoRender;
|
||||||
import net.minecraft.client.MinecraftClient;
|
import net.minecraft.client.MinecraftClient;
|
||||||
import net.minecraft.client.gui.hud.InGameOverlayRenderer;
|
import net.minecraft.client.gui.hud.InGameOverlayRenderer;
|
||||||
import net.minecraft.client.render.VertexConsumerProvider;
|
import net.minecraft.client.render.VertexConsumerProvider;
|
||||||
+3
-3
@@ -1,8 +1,8 @@
|
|||||||
package me.retucio.camtweaks.mixin;
|
package me.retucio.sputnik.mixin;
|
||||||
|
|
||||||
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
|
import com.llamalad7.mixinextras.injector.ModifyReturnValue;
|
||||||
import me.retucio.camtweaks.module.ModuleManager;
|
import me.retucio.sputnik.module.ModuleManager;
|
||||||
import me.retucio.camtweaks.module.modules.render.Nametags;
|
import me.retucio.sputnik.module.modules.render.Nametags;
|
||||||
import net.minecraft.entity.ItemEntity;
|
import net.minecraft.entity.ItemEntity;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.text.MutableText;
|
import net.minecraft.text.MutableText;
|
||||||
Loaded 100 of 305 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user