/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  com.llamalad7.mixinextras.injector.ModifyExpressionValue
 *  net.minecraft.class_12155
 *  net.minecraft.class_1297
 *  net.minecraft.class_238
 *  org.spongepowered.asm.mixin.Mixin
 *  org.spongepowered.asm.mixin.injection.At
 */
package meteordevelopment.meteorclient.mixin;

import com.llamalad7.mixinextras.injector.ModifyExpressionValue;
import meteordevelopment.meteorclient.systems.modules.Modules;
import meteordevelopment.meteorclient.systems.modules.combat.Hitboxes;
import net.minecraft.class_12155;
import net.minecraft.class_1297;
import net.minecraft.class_238;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;

@Mixin(value={class_12155.class})
public class EntityHitboxDebugRendererMixin {
    @ModifyExpressionValue(method={"method_75432"}, at={@At(value="INVOKE", target="Lnet/minecraft/class_1297;method_5829()Lnet/minecraft/class_238;", ordinal=0)})
    private class_238 meteor$createHitbox(class_238 original, class_1297 entity, float tickProgress, boolean inLocalServer) {
        double v = Modules.get().get(Hitboxes.class).getEntityValue(entity);
        if (v == 0.0) {
            return original;
        }
        return original.method_1014(v);
    }
}

