Search in sources :

Example 1 with TridentBoost

use of mathax.client.systems.modules.movement.TridentBoost 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

TridentBoost (mathax.client.systems.modules.movement.TridentBoost)1 ModifyArgs (org.spongepowered.asm.mixin.injection.ModifyArgs)1