/*
 * Decompiled with CFR 0.152.
 * 
 * Could not load the following classes:
 *  net.minecraft.class_5632
 *  net.minecraft.class_5684
 *  org.spongepowered.asm.mixin.Mixin
 *  org.spongepowered.asm.mixin.injection.At
 *  org.spongepowered.asm.mixin.injection.Inject
 *  org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable
 */
package meteordevelopment.meteorclient.mixin;

import meteordevelopment.meteorclient.utils.tooltip.MeteorTooltipData;
import net.minecraft.class_5632;
import net.minecraft.class_5684;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfoReturnable;

@Mixin(value={class_5684.class})
public interface TooltipComponentMixin {
    @Inject(method={"method_32663(Lnet/minecraft/class_5632;)Lnet/minecraft/class_5684;"}, at={@At(value="HEAD")}, cancellable=true)
    private static void shortcutMeteorTooltipData(class_5632 tooltipData, CallbackInfoReturnable<class_5684> cir) {
        if (tooltipData instanceof MeteorTooltipData) {
            cir.setReturnValue(null);
        }
    }
}

