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());
}
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)));
}
}
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));
}
}
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));
}
}
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());
}
Aggregations