Search in sources :

Example 1 with ModifyArgs

use of org.spongepowered.asm.mixin.injection.ModifyArgs in project meteor-client by MeteorDevelopment.

the class EndCrystalEntityRendererMixin method modifySpeed.

// Rotation speed
@ModifyArgs(method = "render(Lnet/minecraft/entity/decoration/EndCrystalEntity;FFLnet/minecraft/client/util/math/MatrixStack;Lnet/minecraft/client/render/VertexConsumerProvider;I)V", at = @At(value = "INVOKE", target = "Lnet/minecraft/util/math/Vec3f;getDegreesQuaternion(F)Lnet/minecraft/util/math/Quaternion;"))
private void modifySpeed(Args args) {
    Chams module = Modules.get().get(Chams.class);
    if (!module.isActive() || !module.crystals.get())
        return;
    args.set(0, ((float) args.get(0)) * module.crystalsRotationSpeed.get().floatValue());
}
Also used : Chams(meteordevelopment.meteorclient.systems.modules.render.Chams) ModifyArgs(org.spongepowered.asm.mixin.injection.ModifyArgs)

Example 2 with ModifyArgs

use of org.spongepowered.asm.mixin.injection.ModifyArgs in project meteor-client by MeteorDevelopment.

the class ComeCommandMixin method getComeCommandTarget.

@ModifyArgs(method = "execute", at = @At(value = "INVOKE", target = "Lbaritone/api/process/ICustomGoalProcess;setGoalAndPath(Lbaritone/api/pathing/goals/Goal;)V"), remap = false)
private void getComeCommandTarget(Args args) {
    Freecam freecam = Modules.get().get(Freecam.class);
    if (freecam.isActive()) {
        float tickDelta = mc.getTickDelta();
        args.set(0, new GoalBlock((int) freecam.getX(tickDelta), (int) freecam.getY(tickDelta), (int) freecam.getZ(tickDelta)));
    }
}
Also used : GoalBlock(baritone.api.pathing.goals.GoalBlock) Freecam(meteordevelopment.meteorclient.systems.modules.render.Freecam) ModifyArgs(org.spongepowered.asm.mixin.injection.ModifyArgs)

Example 3 with ModifyArgs

use of org.spongepowered.asm.mixin.injection.ModifyArgs in project meteor-client by MeteorDevelopment.

the class CameraMixin method onUpdateSetPosArgs.

@ModifyArgs(method = "update", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/render/Camera;setPos(DDD)V"))
private void onUpdateSetPosArgs(Args args) {
    Freecam freecam = Modules.get().get(Freecam.class);
    if (freecam.isActive()) {
        args.set(0, freecam.getX(tickDelta));
        args.set(1, freecam.getY(tickDelta));
        args.set(2, freecam.getZ(tickDelta));
    }
}
Also used : Freecam(meteordevelopment.meteorclient.systems.modules.render.Freecam) ModifyArgs(org.spongepowered.asm.mixin.injection.ModifyArgs)

Example 4 with ModifyArgs

use of org.spongepowered.asm.mixin.injection.ModifyArgs in project Hypnotic-Client by Hypnotic-Development.

the class CameraMixin method onUpdateSetPosArgs.

@ModifyArgs(method = "update", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/render/Camera;setPos(DDD)V"))
private void onUpdateSetPosArgs(Args args) {
    Freecam freecam = ModuleManager.INSTANCE.getModule(Freecam.class);
    if (freecam.isEnabled()) {
        args.set(0, freecam.getX(tickDelta));
        args.set(1, freecam.getY(tickDelta));
        args.set(2, freecam.getZ(tickDelta));
    }
}
Also used : Freecam(dev.hypnotic.module.render.Freecam) ModifyArgs(org.spongepowered.asm.mixin.injection.ModifyArgs)

Example 5 with ModifyArgs

use of org.spongepowered.asm.mixin.injection.ModifyArgs in project Client by MatHax.

the class TridentItemMixin method modifyVelocity.

@ModifyArgs(method = "onStoppedUsing", at = @At(value = "INVOKE", target = "Lnet/minecraft/entity/player/PlayerEntity;addVelocity(DDD)V"))
private void modifyVelocity(Args args) {
    TridentBoost tridentBoost = Modules.get().get(TridentBoost.class);
    args.set(0, (double) args.get(0) * tridentBoost.getMultiplier());
    args.set(1, (double) args.get(1) * tridentBoost.getMultiplier());
    args.set(2, (double) args.get(2) * tridentBoost.getMultiplier());
}
Also used : TridentBoost(mathax.client.systems.modules.movement.TridentBoost) ModifyArgs(org.spongepowered.asm.mixin.injection.ModifyArgs)

Aggregations

ModifyArgs (org.spongepowered.asm.mixin.injection.ModifyArgs)26 Chams (mathax.client.systems.modules.render.Chams)3 Freecam (mathax.client.systems.modules.render.Freecam)3 Chams (meteordevelopment.meteorclient.systems.modules.render.Chams)3 Freecam (meteordevelopment.meteorclient.systems.modules.render.Freecam)3 GoalBlock (baritone.api.pathing.goals.GoalBlock)2 IConfigBase (fi.dy.masa.malilib.config.IConfigBase)2 IHotkeyTogglable (fi.dy.masa.malilib.config.IHotkeyTogglable)2 ConfigOptionChangeListenerButton (fi.dy.masa.malilib.config.gui.ConfigOptionChangeListenerButton)2 ConfigBooleanHotkeyed (fi.dy.masa.malilib.config.options.ConfigBooleanHotkeyed)2 GuiConfigsBase (fi.dy.masa.malilib.gui.GuiConfigsBase)2 ButtonGeneric (fi.dy.masa.malilib.gui.button.ButtonGeneric)2 ConfigButtonBoolean (fi.dy.masa.malilib.gui.button.ConfigButtonBoolean)2 ConfigButtonKeybind (fi.dy.masa.malilib.gui.button.ConfigButtonKeybind)2 IKeybindConfigGui (fi.dy.masa.malilib.gui.interfaces.IKeybindConfigGui)2 fi.dy.masa.malilib.gui.widgets (fi.dy.masa.malilib.gui.widgets)2 fi.dy.masa.malilib.hotkeys (fi.dy.masa.malilib.hotkeys)2 StringUtils (fi.dy.masa.malilib.util.StringUtils)2 Objects (java.util.Objects)2 Function (java.util.function.Function)2