left hand

This commit is contained in:
ThisIsALegitUsername 2023-04-01 19:55:19 +00:00
parent 019c5609b5
commit 90cf29ecd9
3 changed files with 14 additions and 0 deletions

View File

@ -34,6 +34,7 @@ import dev.resent.module.impl.misc.HUD;
import dev.resent.module.impl.misc.Scoreboard; import dev.resent.module.impl.misc.Scoreboard;
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.Animations;
import dev.resent.module.impl.setting.Hand;
import dev.resent.module.impl.setting.MinimalViewBobbing; import dev.resent.module.impl.setting.MinimalViewBobbing;
import dev.resent.module.impl.setting.NoParticles; import dev.resent.module.impl.setting.NoParticles;
import dev.resent.module.impl.setting.NoRain; import dev.resent.module.impl.setting.NoRain;
@ -78,9 +79,11 @@ public class ModManager {
public static FPSOptions fpsOptions = new FPSOptions(); public static FPSOptions fpsOptions = new FPSOptions();
public static AdminRay adminRay = new AdminRay(); public static AdminRay adminRay = new AdminRay();
public static AdminSpawner adminSpawner =new AdminSpawner(); public static AdminSpawner adminSpawner =new AdminSpawner();
public static Hand hand;
public ModManager() { public ModManager() {
//Hud //Hud
register(hand = new Hand());
register(adminSpawner); register(adminSpawner);
register(adminRay); register(adminRay);
register(fpsOptions); register(fpsOptions);

View File

@ -0,0 +1,7 @@
package dev.resent.module.impl.setting;
import dev.resent.annotation.Module;
import dev.resent.module.base.Mod;
@Module(name = "Left hand")
public class Hand extends Mod{ }

View File

@ -311,6 +311,10 @@ public class ItemRenderer {
this.func_178110_a((EntityPlayerSP) entityplayersp, partialTicks); this.func_178110_a((EntityPlayerSP) entityplayersp, partialTicks);
GlStateManager.enableRescaleNormal(); GlStateManager.enableRescaleNormal();
GlStateManager.pushMatrix(); GlStateManager.pushMatrix();
if(ModManager.hand.isEnabled()){
GlStateManager.scale(-1.0D, 1.0D, 1.0D);
GlStateManager.disableCull();
}
if (this.itemToRender != null) { if (this.itemToRender != null) {
if (this.itemToRender.getItem() == Items.filled_map) { if (this.itemToRender.getItem() == Items.filled_map) {
this.renderItemMap(entityplayersp, f2, f, f1); this.renderItemMap(entityplayersp, f2, f, f1);