1
0
Fork 0
mirror of https://github.com/Miasmusa/Shadow.git synced 2025-04-03 16:09:42 -04:00
This commit is contained in:
Saturn5Vfive 2022-05-07 12:09:29 -05:00
parent 0f046ab3c8
commit 296dfaf265
414 changed files with 1080 additions and 617 deletions
src/main/java/net/shadow/client
ShadowMain.java
feature
addon
command
config
gui

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.addon;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.addon;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.argument;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.argument;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.argument;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.argument;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.argument;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.argument;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.coloring;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.coloring;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.coloring;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.examples;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.exception;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.command.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.config;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.config;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.config;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.config;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.config;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.config;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.config;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.config;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui.clickgui;
@ -45,7 +45,7 @@ public class ClickGUI extends Screen implements FastTickable {
static final ConfigContainer configContainer = new ConfigContainer(new File(ShadowMain.BASE, "clickGui.sip"), "amongUs");
private static ClickGUI instance;
final List<Element> elements = new ArrayList<>();
final ParticleRenderer real = new ParticleRenderer(100);
final NibletRenderer real = new NibletRenderer(100);
final double scroll = 0;
public String searchTerm = "";
String desc = null;
@ -58,10 +58,10 @@ public class ClickGUI extends Screen implements FastTickable {
super(Text.of(""));
initElements();
Events.registerEventHandler(EventType.HUD_RENDER, event -> {
if (this.real.particles.isEmpty() || !closing) {
return;
}
this.real.render(Renderer.R3D.getEmptyMatrixStack());
//if (closing) {
// this.real.rebder(Renderer.R3D.getEmptyMatrixStack());
// this.real.tickPhysics();
//}
});
Events.registerEventHandler(EventType.CONFIG_SAVE, event -> saveConfig());
loadConfig();
@ -138,14 +138,11 @@ public class ClickGUI extends Screen implements FastTickable {
closing = false;
introAnimation = 0;
// this.real.particles.clear();
this.real.shouldAdd = true;
}
@Override
public void close() {
closing = true;
this.real.shouldAdd = false;
}
@Override
@ -209,7 +206,7 @@ public class ClickGUI extends Screen implements FastTickable {
matrices.push();
matrices.translate(0, 0, -20);
if (!closing) {
real.render(matrices);
this.real.rebder(matrices);
}
matrices.pop();
matrices.push();
@ -315,6 +312,7 @@ public class ClickGUI extends Screen implements FastTickable {
for (Element element : elements) {
element.tickAnim();
}
this.real.tickPhysics();
}
@Override

View file

@ -0,0 +1,15 @@
package net.shadow.client.feature.gui.clickgui;
public class Niblet {
double vector;
double x;
double y;
float speed;
public Niblet(double x, double y, double vector, float speed) {
this.x = x;
this.y = y;
this.vector = vector;
this.speed = speed;
}
}

View file

@ -0,0 +1,95 @@
package net.shadow.client.feature.gui.clickgui;
import net.minecraft.client.util.Window;
import net.minecraft.client.util.math.MatrixStack;
import net.shadow.client.ShadowMain;
import net.shadow.client.helper.render.Renderer;
import java.awt.*;
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class NibletRenderer {
final List<Niblet> cache = new ArrayList<>();
public NibletRenderer(int niblets) {
for (int i = 0; i < niblets; i++) {
Random random = new Random();
Niblet niblet = new Niblet(random.nextInt(ShadowMain.client.getWindow().getScaledWidth()), random.nextInt(ShadowMain.client.getWindow().getScaledHeight()), randomEulerRotation(), 0.25F);
cache.add(niblet);
}
}
public void spawnBreak(double x, double y) {
Niblet niblet = new Niblet(x, y, randomEulerRotation(), 1);
cache.add(niblet);
}
public void tickPhysics() {
for (Niblet n : cache) {
n.x += Math.cos(n.vector) * n.speed;
n.y += Math.sin(n.vector) * n.speed;
int flagcode = checkOOB(n);
if (flagcode > 0) {
switch (flagcode) {
case 1 -> {
n.x = ShadowMain.client.getWindow().getScaledWidth();
n.vector = Math.toRadians(180 - Math.toDegrees(n.vector));
}
case 2 -> {
n.x = 0;
n.vector = Math.toRadians(180 - Math.toDegrees(n.vector));
}
case 3 -> {
n.y = ShadowMain.client.getWindow().getScaledHeight();
n.vector = Math.toRadians(360 - Math.toDegrees(n.vector));
}
case 4 -> {
n.y = 0;
n.vector = Math.toRadians(360 - Math.toDegrees(n.vector));
}
}
}
}
}
public void rebder(MatrixStack matrix) {
for (Niblet n : cache) {
//RenderUtils.circle2d(n.x + 1, n.y + 1, 2, new Color(125, 125, 125, 150), matrix, 90);
for (Niblet nr : cache) {
if (nr == n) continue;
double distance = distanceto(n.x + 1, n.y + 1, nr.x + 1, nr.y + 1);
if (distance > 100) continue;
double lum = (100 - distance) / 100;
Renderer.R2D.renderLine(matrix, new Color(255, 255, 255, (int) (lum * 255)), n.x + 1, n.y + 1, nr.x + 1, nr.y + 1);
}
}
}
public int checkOOB(Niblet n) {
Window window = ShadowMain.client.getWindow();
if (n.x > window.getScaledWidth()) {
return 1;
}
if (n.x < 0) {
return 2;
}
if (n.y > window.getScaledHeight()) {
return 3;
}
if (n.y < 0) {
return 4;
}
return 0;
}
public double distanceto(double x1, double y1, double x2, double y2) {
return Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2));
}
public static double randomEulerRotation() {
return (Math.random() - 0.5) * Math.PI * 2;
}
}

View file

@ -1,199 +0,0 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
*/
package net.shadow.client.feature.gui.clickgui;
import com.mojang.blaze3d.systems.RenderSystem;
import net.minecraft.client.render.BufferBuilder;
import net.minecraft.client.render.BufferRenderer;
import net.minecraft.client.render.GameRenderer;
import net.minecraft.client.render.Tessellator;
import net.minecraft.client.render.VertexFormat;
import net.minecraft.client.render.VertexFormats;
import net.minecraft.client.util.math.MatrixStack;
import net.minecraft.util.math.MathHelper;
import net.minecraft.util.math.Matrix4f;
import net.minecraft.util.math.Vec3d;
import net.shadow.client.ShadowMain;
import net.shadow.client.feature.gui.clickgui.theme.Theme;
import net.shadow.client.feature.gui.clickgui.theme.ThemeManager;
import net.shadow.client.helper.render.Renderer;
import net.shadow.client.helper.util.Transitions;
import org.lwjgl.opengl.GL11;
import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
public class ParticleRenderer {
static final Color DYING = new Color(255, 255, 255, 0); // it goes gradient so you can still see the white
public final List<Particle> particles = new ArrayList<>();
final int pc;
public boolean shouldAdd = true;
long lastTick = System.currentTimeMillis();
public ParticleRenderer(int pc) {
this.pc = pc;
for (int i = 0; i < pc; i++) {
addParticle();
}
}
void addParticle() {
if (!shouldAdd) {
return;
}
Particle n = new Particle();
n.x = ShadowMain.client.getWindow().getScaledWidth() * Math.random();
n.y = ShadowMain.client.getWindow().getScaledHeight() * Math.random();
// n.velY = (Math.random() - .5) / 4;
n.velX = (Math.random() - .5) / 4;
n.circleRad = Math.random() * 2;
particles.add(n);
}
private void tick() {
lastTick = System.currentTimeMillis();
for (Particle particle : particles) {
particle.move();
}
particles.removeIf(Particle::isDead);
}
public void render(MatrixStack stack) {
long timeDiffSinceLastTick = System.currentTimeMillis() - lastTick;
int iter = (int) Math.floor(timeDiffSinceLastTick / 20d);
for (int i = 0; i < iter; i++) {
tick();
}
if (particles.size() < this.pc) {
addParticle();
}
for (Particle particle : particles) {
particle.render(particles, stack);
}
RenderSystem.setShaderColor(1, 1, 1, 1);
}
static class Particle {
final long origLife = (long) (20 * MathHelper.lerp(Math.random(), 4, 6));
double velX = 0;
double x = 0;
double y = 0;
double velY = 0;
double accelX = 0;
double accelY = -0.1;
long life = origLife;
double circleRad = 1.5;
public static BufferBuilder renderPrepare(Color color) {
float red = color.getRed() / 255f;
float green = color.getGreen() / 255f;
float blue = color.getBlue() / 255f;
float alpha = color.getAlpha() / 255f;
RenderSystem.setShader(GameRenderer::getPositionShader);
GL11.glDepthFunc(GL11.GL_ALWAYS);
RenderSystem.setShaderColor(red, green, blue, alpha);
BufferBuilder buffer = Tessellator.getInstance().getBuffer();
buffer.begin(VertexFormat.DrawMode.DEBUG_LINES, VertexFormats.POSITION);
return buffer;
}
public static void renderOutline(Vec3d start, Vec3d dimensions, Color color, MatrixStack stack) {
RenderSystem.defaultBlendFunc();
RenderSystem.enableBlend();
BufferBuilder buffer = renderPrepare(color);
renderOutlineIntern(start, dimensions, stack, buffer);
buffer.end();
BufferRenderer.draw(buffer);
GL11.glDepthFunc(GL11.GL_LEQUAL);
RenderSystem.disableBlend();
}
static void renderOutlineIntern(Vec3d start, Vec3d dimensions, MatrixStack stack, BufferBuilder buffer) {
Vec3d end = start.add(dimensions);
Matrix4f matrix = stack.peek().getPositionMatrix();
float x1 = (float) start.x;
float y1 = (float) start.y;
float z1 = (float) start.z;
float x2 = (float) end.x;
float y2 = (float) end.y;
float z2 = (float) end.z;
buffer.vertex(matrix, x1, y1, z1).next();
buffer.vertex(matrix, x1, y1, z2).next();
buffer.vertex(matrix, x1, y1, z2).next();
buffer.vertex(matrix, x2, y1, z2).next();
buffer.vertex(matrix, x2, y1, z2).next();
buffer.vertex(matrix, x2, y1, z1).next();
buffer.vertex(matrix, x2, y1, z1).next();
buffer.vertex(matrix, x1, y1, z1).next();
buffer.vertex(matrix, x1, y2, z1).next();
buffer.vertex(matrix, x1, y2, z2).next();
buffer.vertex(matrix, x1, y2, z2).next();
buffer.vertex(matrix, x2, y2, z2).next();
buffer.vertex(matrix, x2, y2, z2).next();
buffer.vertex(matrix, x2, y2, z1).next();
buffer.vertex(matrix, x2, y2, z1).next();
buffer.vertex(matrix, x1, y2, z1).next();
buffer.vertex(matrix, x1, y1, z1).next();
buffer.vertex(matrix, x1, y2, z1).next();
buffer.vertex(matrix, x2, y1, z1).next();
buffer.vertex(matrix, x2, y2, z1).next();
buffer.vertex(matrix, x2, y1, z2).next();
buffer.vertex(matrix, x2, y2, z2).next();
buffer.vertex(matrix, x1, y1, z2).next();
buffer.vertex(matrix, x1, y2, z2).next();
}
void move() {
life--;
life = Math.max(0, life);
accelX /= 1.1;
accelY /= 1.1;
velX += accelX;
velY += accelY;
x += velX;
y += velY;
double h = ShadowMain.client.getWindow().getScaledHeight();
double w = ShadowMain.client.getWindow().getScaledWidth();
if (x > w || x < 0) {
velX *= -1;
}
if (y > h) {
velY *= -1;
}
x = MathHelper.clamp(x, 0, w);
y = Math.min(y, h);
}
void render(List<Particle> others, MatrixStack stack) {
long fadeTime = 40;
long startDelta = Math.min(origLife - life, fadeTime);
long endDelta = Math.min(life, fadeTime);
long deltaOverall = Math.min(startDelta, endDelta);
double pk = (deltaOverall / (double) fadeTime);
// ShadowMain.client.textRenderer.draw(stack,pk+"",(float)x,(float)y,0xFFFFFF);
pk = Transitions.easeOutExpo(pk);
Theme theme = ThemeManager.getMainTheme();
stack.push();
double radToUse = pk * circleRad;
Renderer.R2D.renderCircle(stack, Renderer.Util.lerp(theme.getAccent(), DYING, pk), x - radToUse / 2d, y - radToUse / 2d, radToUse, 30);
stack.pop();
}
boolean isDead() {
return life == 0 || y < 0;
}
}
}

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui.clickgui.element;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui.clickgui.element.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui.clickgui.element.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui.clickgui.element.impl;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui.clickgui.element.impl.config;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui.clickgui.element.impl.config;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui.clickgui.element.impl.config;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui.clickgui.element.impl.config;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui.clickgui.element.impl.config;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui.clickgui.element.impl.config;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui.clickgui.element.impl.config;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui.clickgui.theme;

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) Shadow client, 0x150, Saturn5VFive 2022. All rights reserved.
* Copyright (c) Shadow client, Saturn5VFive and contributors 2022. All rights reserved.
*/
package net.shadow.client.feature.gui.clickgui.theme;

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