modules list and remove broken stuff
This commit is contained in:
parent
2a89f212e5
commit
b58eedfb9c
16 changed files with 168 additions and 44 deletions
|
@ -20,6 +20,7 @@ public class Fly extends Module_
|
|||
@Override
|
||||
public void onDisable()
|
||||
{
|
||||
super.onDisable();
|
||||
mc.player.getAbilities().flying = false;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -14,12 +14,14 @@ public class Fullbright extends Module_
|
|||
@Override
|
||||
public void onEnable()
|
||||
{
|
||||
super.onEnable();
|
||||
((ISimpleOption<Double>)(Object)mc.options.getGamma()).setValueUnrestricted(100.0);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDisable()
|
||||
{
|
||||
super.onDisable();
|
||||
mc.options.getGamma().setValue(1.0);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2,28 +2,43 @@ package me.kawaiizenbo.moonlight.module.modules;
|
|||
|
||||
import me.kawaiizenbo.moonlight.module.Category;
|
||||
import me.kawaiizenbo.moonlight.module.Module_;
|
||||
import me.kawaiizenbo.moonlight.module.settings.BooleanSetting;
|
||||
import me.kawaiizenbo.moonlight.module.settings.DoubleSetting;
|
||||
import me.kawaiizenbo.moonlight.ui.HUD;
|
||||
import me.kawaiizenbo.moonlight.util.ReflectionUtils;
|
||||
import me.kawaiizenbo.moonlight.ui.HUDOverlay;
|
||||
import me.kawaiizenbo.moonlight.util.ColorUtils;
|
||||
|
||||
public class HUDModule extends Module_
|
||||
{
|
||||
//public DoubleSetting r = new DoubleSetting("Red", 0x55, 0, 255, 0, ReflectionUtils.tryGetMethod("updateHUD()V", getClass()));
|
||||
//public DoubleSetting g = new DoubleSetting("Green", 255, 0, 255, 0, ReflectionUtils.tryGetMethod("updateHUD()V", getClass()));
|
||||
//public DoubleSetting b = new DoubleSetting("Blue", 255, 0, 255, 0, ReflectionUtils.tryGetMethod("updateHUD()V", getClass()));
|
||||
public BooleanSetting clientTag = new BooleanSetting("Client Tag", true);
|
||||
public DoubleSetting r = new DoubleSetting("Red", 0x55, 0, 255, 0);
|
||||
public DoubleSetting g = new DoubleSetting("Green", 255, 0, 255, 0);
|
||||
public DoubleSetting b = new DoubleSetting("Blue", 255, 0, 255, 0);
|
||||
//public ColorSetting color = new ColorSetting("Color", 0x55FFFF, ReflectionUtils.tryGetMethod("updateHUD", getClass()));
|
||||
|
||||
public HUDModule()
|
||||
{
|
||||
super("HUD", "Enables or disables the Moonlight HUD.", Category.RENDER);
|
||||
super("HUD", "The Moonlight HUD. Toggle to update.", Category.RENDER);
|
||||
this.enabled = true;
|
||||
//settings.add(r);
|
||||
//settings.add(g);
|
||||
//settings.add(b);
|
||||
this.showInModulesList.value = false;
|
||||
|
||||
settings.add(clientTag);
|
||||
settings.add(r);
|
||||
settings.add(g);
|
||||
settings.add(b);
|
||||
//settings.add(color);
|
||||
}
|
||||
|
||||
public static void updateHUD()
|
||||
@Override
|
||||
public void onEnable()
|
||||
{
|
||||
HUD.INSTANCE = new HUD();
|
||||
super.onEnable();
|
||||
HUDOverlay.INSTANCE.showClientTag = clientTag.value;
|
||||
HUDOverlay.INSTANCE.hudColor =
|
||||
ColorUtils.rgbaToInt(
|
||||
(int)r.value,
|
||||
(int)g.value,
|
||||
(int)b.value,
|
||||
255
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
package me.kawaiizenbo.moonlight.module.modules;
|
||||
|
||||
import me.kawaiizenbo.moonlight.module.Category;
|
||||
import me.kawaiizenbo.moonlight.module.Module_;
|
||||
|
||||
public class ModulesList extends Module_
|
||||
{
|
||||
public ModulesList()
|
||||
{
|
||||
super("ModulesList", "Shows enabled modules on side of screen", Category.RENDER);
|
||||
this.enabled = true;
|
||||
this.showInModulesList.value = false;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
package me.kawaiizenbo.moonlight.module.modules;
|
||||
|
||||
import me.kawaiizenbo.moonlight.module.Category;
|
||||
import me.kawaiizenbo.moonlight.module.Module_;
|
||||
import me.kawaiizenbo.moonlight.module.settings.DoubleSetting;
|
||||
import net.minecraft.entity.MovementType;
|
||||
import net.minecraft.util.math.Vec3d;
|
||||
|
||||
public class Speed extends Module_
|
||||
{
|
||||
DoubleSetting speed = new DoubleSetting("Speed", 2, 0.1, 10, 1);
|
||||
public Speed()
|
||||
{
|
||||
super("Speed", "Allows you to move faster.", Category.MOVEMENT);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onMotion(MovementType type, Vec3d movement)
|
||||
{
|
||||
mc.player.addVelocity(movement);
|
||||
}
|
||||
|
||||
}
|
|
@ -6,7 +6,7 @@ import me.kawaiizenbo.moonlight.module.settings.DoubleSetting;
|
|||
|
||||
public class Step extends Module_
|
||||
{
|
||||
DoubleSetting stepHeight = new DoubleSetting("Height", 1, 1, 10, 0, null);
|
||||
DoubleSetting stepHeight = new DoubleSetting("Height", 1, 1, 10, 0);
|
||||
|
||||
public Step()
|
||||
{
|
||||
|
@ -23,6 +23,7 @@ public class Step extends Module_
|
|||
@Override
|
||||
public void onDisable()
|
||||
{
|
||||
super.onDisable();
|
||||
mc.player.setStepHeight(0.5f);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue