move some stuff

This commit is contained in:
ThisIsALegitUsername 2023-04-01 19:53:27 +00:00
parent 0ca47dd846
commit 019c5609b5
16 changed files with 20 additions and 60 deletions

View File

@ -19,9 +19,8 @@ import dev.resent.module.impl.hud.KeyStrokes;
import dev.resent.module.impl.hud.PotCounter; import dev.resent.module.impl.hud.PotCounter;
import dev.resent.module.impl.hud.PotionHUD; import dev.resent.module.impl.hud.PotionHUD;
import dev.resent.module.impl.hud.ReachDisplay; import dev.resent.module.impl.hud.ReachDisplay;
import dev.resent.module.impl.misc.AdminSpawner;
import dev.resent.module.impl.misc.AdminRay; import dev.resent.module.impl.misc.AdminRay;
import dev.resent.module.impl.misc.Animations; import dev.resent.module.impl.misc.AdminSpawner;
import dev.resent.module.impl.misc.AutoGG; import dev.resent.module.impl.misc.AutoGG;
import dev.resent.module.impl.misc.AutoRespawn; import dev.resent.module.impl.misc.AutoRespawn;
import dev.resent.module.impl.misc.Cape; import dev.resent.module.impl.misc.Cape;
@ -29,17 +28,17 @@ import dev.resent.module.impl.misc.ClearChat;
import dev.resent.module.impl.misc.Cosmetics; import dev.resent.module.impl.misc.Cosmetics;
import dev.resent.module.impl.misc.CrystalOptimizer; import dev.resent.module.impl.misc.CrystalOptimizer;
import dev.resent.module.impl.misc.DynamicFOV; import dev.resent.module.impl.misc.DynamicFOV;
import dev.resent.module.impl.misc.FPSB;
import dev.resent.module.impl.misc.FPSOptions; import dev.resent.module.impl.misc.FPSOptions;
import dev.resent.module.impl.misc.Fullbright; import dev.resent.module.impl.misc.Fullbright;
import dev.resent.module.impl.misc.HUD; import dev.resent.module.impl.misc.HUD;
import dev.resent.module.impl.misc.MinimalViewBobbing;
import dev.resent.module.impl.misc.NoParticles;
import dev.resent.module.impl.misc.NoRain;
import dev.resent.module.impl.misc.NoSwingDelay;
import dev.resent.module.impl.misc.Scoreboard; import dev.resent.module.impl.misc.Scoreboard;
import dev.resent.module.impl.misc.SelfNametag;
import dev.resent.module.impl.misc.Sprint; import dev.resent.module.impl.misc.Sprint;
import dev.resent.module.impl.setting.Animations;
import dev.resent.module.impl.setting.MinimalViewBobbing;
import dev.resent.module.impl.setting.NoParticles;
import dev.resent.module.impl.setting.NoRain;
import dev.resent.module.impl.setting.NoSwingDelay;
import dev.resent.module.impl.setting.SelfNametag;
public class ModManager { public class ModManager {
@ -65,7 +64,6 @@ public class ModManager {
public static NoParticles noParticles = new NoParticles(); public static NoParticles noParticles = new NoParticles();
public static Scoreboard scoreboard = new Scoreboard(); public static Scoreboard scoreboard = new Scoreboard();
public static ClearChat clearChat = new ClearChat(); public static ClearChat clearChat = new ClearChat();
public static FPSB fpsb = new FPSB();
public static Animations animations = new Animations(); public static Animations animations = new Animations();
public static MinimalViewBobbing minimalViewBobbing = new MinimalViewBobbing(); public static MinimalViewBobbing minimalViewBobbing = new MinimalViewBobbing();
public static NoSwingDelay noSwingDelay; public static NoSwingDelay noSwingDelay;
@ -95,7 +93,6 @@ public class ModManager {
register(crystalOptimizer); register(crystalOptimizer);
register(hud = new HUD()); register(hud = new HUD());
register(freelook = new Freelook()); register(freelook = new Freelook());
register(fpsb);
register(keyStrokes = new KeyStrokes()); register(keyStrokes = new KeyStrokes());
register(armorHud = new ArmorHud()); register(armorHud = new ArmorHud());
register(cps = new CPS()); register(cps = new CPS());

View File

@ -10,7 +10,7 @@ import net.minecraft.client.renderer.RenderGlobal;
import net.minecraft.tileentity.TileEntityMobSpawner; import net.minecraft.tileentity.TileEntityMobSpawner;
import net.minecraft.util.AxisAlignedBB; import net.minecraft.util.AxisAlignedBB;
@Module(name = "Spawner Find", category = Category.HUD) @Module(name = "Spawn", category = Category.HUD)
public class AdminSpawner extends Mod { public class AdminSpawner extends Mod {

View File

@ -1,18 +0,0 @@
package dev.resent.module.impl.misc;
import dev.resent.annotation.Module;
import dev.resent.module.base.Mod;
import dev.resent.module.base.Mod.Category;
import net.minecraft.util.MathHelper;
@Module(name = "Fast math", category = Category.MISC)
public class FPSB extends Mod {
public void onEnable() {
MathHelper.fastMath = true;
}
public void onDisable() {
MathHelper.fastMath = false;
}
}

View File

@ -48,7 +48,6 @@ public class FPSOptions extends Mod{
gameSettings.field_181151_V = false; gameSettings.field_181151_V = false;
ModManager.noParticles.setEnabled(true); ModManager.noParticles.setEnabled(true);
ModManager.fpsb.setEnabled(true);
} }
}; };
//public BooleanSetting delay = new BooleanSetting("Chunk delay", "", false); //public BooleanSetting delay = new BooleanSetting("Chunk delay", "", false);

View File

@ -7,13 +7,9 @@ import dev.resent.module.base.Mod.Category;
@Module(name = "FullBright", category = Category.MISC) @Module(name = "FullBright", category = Category.MISC)
public class Fullbright extends Mod { public class Fullbright extends Mod {
public float previousGamma;
@Override @Override
public void onEnable() { public void onEnable() {
if (mc.thePlayer != null && mc.theWorld != null && mc.gameSettings != null) { if (mc.thePlayer != null && mc.theWorld != null && mc.gameSettings != null) {
//Resent.INSTANCE.soundManager.playAva();
previousGamma = mc.gameSettings.gammaSetting;
mc.gameSettings.gammaSetting = 100; mc.gameSettings.gammaSetting = 100;
} }
} }
@ -21,8 +17,7 @@ public class Fullbright extends Mod {
@Override @Override
public void onDisable() { public void onDisable() {
if (mc.thePlayer != null && mc.theWorld != null && mc.gameSettings != null) { if (mc.thePlayer != null && mc.theWorld != null && mc.gameSettings != null) {
//Resent.INSTANCE.soundManager.stopMusic(); mc.gameSettings.gammaSetting = 1;
mc.gameSettings.gammaSetting = previousGamma;
} }
} }
} }

View File

@ -1,4 +1,4 @@
package dev.resent.module.impl.misc; package dev.resent.module.impl.setting;
import dev.resent.annotation.Module; import dev.resent.annotation.Module;
import dev.resent.module.base.Mod; import dev.resent.module.base.Mod;

View File

@ -1,4 +1,4 @@
package dev.resent.module.impl.misc; package dev.resent.module.impl.setting;
import dev.resent.annotation.Module; import dev.resent.annotation.Module;
import dev.resent.module.base.Mod; import dev.resent.module.base.Mod;

View File

@ -1,4 +1,4 @@
package dev.resent.module.impl.misc; package dev.resent.module.impl.setting;
import dev.resent.annotation.Module; import dev.resent.annotation.Module;
import dev.resent.module.base.Mod; import dev.resent.module.base.Mod;

View File

@ -1,4 +1,4 @@
package dev.resent.module.impl.misc; package dev.resent.module.impl.setting;
import dev.resent.annotation.Module; import dev.resent.annotation.Module;
import dev.resent.module.base.Mod; import dev.resent.module.base.Mod;

View File

@ -1,4 +1,4 @@
package dev.resent.module.impl.misc; package dev.resent.module.impl.setting;
import dev.resent.annotation.Module; import dev.resent.annotation.Module;
import dev.resent.module.base.Mod; import dev.resent.module.base.Mod;

View File

@ -1,4 +1,4 @@
package dev.resent.module.impl.misc; package dev.resent.module.impl.setting;
import dev.resent.annotation.Module; import dev.resent.annotation.Module;
import dev.resent.module.base.Mod; import dev.resent.module.base.Mod;

View File

@ -62,7 +62,7 @@ public class SoundManager {
} }
// <3 // <3
public void playAva(){ public void playDemo(){
ISound sound = PositionedSoundRecord.create(new ResourceLocation("minecraft:music.res"), 1); ISound sound = PositionedSoundRecord.create(new ResourceLocation("minecraft:music.res"), 1);
Minecraft.getMinecraft().getSoundHandler().stopSounds(); Minecraft.getMinecraft().getSoundHandler().stopSounds();
Minecraft.getMinecraft().getSoundHandler().playSound(sound); Minecraft.getMinecraft().getSoundHandler().playSound(sound);

View File

@ -7,11 +7,9 @@ import dev.resent.module.impl.hud.Hitboxes;
import dev.resent.module.impl.misc.AutoGG; import dev.resent.module.impl.misc.AutoGG;
import dev.resent.module.impl.misc.ClearChat; import dev.resent.module.impl.misc.ClearChat;
import dev.resent.module.impl.misc.DynamicFOV; import dev.resent.module.impl.misc.DynamicFOV;
import dev.resent.module.impl.misc.FPSB;
//import dev.resent.module.impl.misc.NoHurtCam;
import dev.resent.module.impl.misc.NoParticles;
import dev.resent.module.impl.misc.NoRain;
import dev.resent.module.impl.misc.Scoreboard; import dev.resent.module.impl.misc.Scoreboard;
import dev.resent.module.impl.setting.NoParticles;
import dev.resent.module.impl.setting.NoRain;
public class W { public class W {
@ -50,8 +48,4 @@ public class W {
public static ClearChat clearChat() { public static ClearChat clearChat() {
return ModManager.clearChat; return ModManager.clearChat;
} }
public static FPSB fpsb() {
return ModManager.fpsb;
}
} }

View File

@ -1705,7 +1705,6 @@ public class Minecraft implements IThreadListener {
} }
ModManager.scoreboard.setEnabled(true); ModManager.scoreboard.setEnabled(true);
ModManager.fpsb.setEnabled(true);
this.gameSettings.loadOptions(); this.gameSettings.loadOptions();
System.gc(); System.gc();
this.systemTime = 0L; this.systemTime = 0L;

View File

@ -234,7 +234,6 @@ public class GameSettings {
this.forceUnicodeFont = false; this.forceUnicodeFont = false;
this.mc = mcIn; this.mc = mcIn;
ModManager.scoreboard.setEnabled(true); ModManager.scoreboard.setEnabled(true);
ModManager.fpsb.setEnabled(true);
GameSettings.Options.RENDER_DISTANCE.setValueMax(18.0F); GameSettings.Options.RENDER_DISTANCE.setValueMax(18.0F);
this.renderDistanceChunks = 1; this.renderDistanceChunks = 1;

View File

@ -28,26 +28,24 @@ public class MathHelper {
* A table of sin values computed from 0 (inclusive) to 2*pi * A table of sin values computed from 0 (inclusive) to 2*pi
* (exclusive), with steps of 2*PI / 65536. * (exclusive), with steps of 2*PI / 65536.
*/ */
private static final float[] SIN_TABLE = new float[65536];
private static final float[] SIN_TABLE_FAST = new float[4096]; private static final float[] SIN_TABLE_FAST = new float[4096];
private static final int[] multiplyDeBruijnBitPosition; private static final int[] multiplyDeBruijnBitPosition;
private static final double field_181163_d; private static final double field_181163_d;
private static final double[] field_181164_e; private static final double[] field_181164_e;
private static final double[] field_181165_f; private static final double[] field_181165_f;
public static boolean fastMath = false;
/**+ /**+
* sin looked up in a table * sin looked up in a table
*/ */
public static float sin(float parFloat1) { public static float sin(float parFloat1) {
return fastMath ? SIN_TABLE_FAST[(int) (parFloat1 * 651.8986f) & 4095] : SIN_TABLE[(int) (parFloat1 * 10430.378F) & '\uffff']; return SIN_TABLE_FAST[(int) (parFloat1 * 651.8986f) & 4095];
} }
/**+ /**+
* cos looked up in the sin table with the appropriate offset * cos looked up in the sin table with the appropriate offset
*/ */
public static float cos(float value) { public static float cos(float value) {
return fastMath ? SIN_TABLE_FAST[(int) ((value + ((float) Math.PI / 2f)) * 651.8986f) & 4095] : SIN_TABLE[(int) (value * 10430.378F + 16384.0F) & '\uffff']; return SIN_TABLE_FAST[(int) ((value + ((float) Math.PI / 2f)) * 651.8986f) & 4095];
} }
public static float sqrt_float(float value) { public static float sqrt_float(float value) {
@ -487,9 +485,6 @@ public class MathHelper {
} }
static { static {
for (int i = 0; i < 65536; ++i) {
SIN_TABLE[i] = (float) Math.sin((double) i * 3.141592653589793D * 2.0D / 65536.0D);
}
for (int j = 0; j < 4096; ++j) { for (int j = 0; j < 4096; ++j) {
SIN_TABLE_FAST[j] = (float) Math.sin(((float) j + 0.5f) / 4096.0f * ((float) Math.PI * 2f)); SIN_TABLE_FAST[j] = (float) Math.sin(((float) j + 0.5f) / 4096.0f * ((float) Math.PI * 2f));