package com.tiedup.remake.client.renderer;

import com.tiedup.remake.entities.EntityRopeArrow;
import net.minecraft.client.renderer.entity.ArrowRenderer;
import net.minecraft.client.renderer.entity.EntityRendererProvider;
import net.minecraft.resources.ResourceLocation;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;

/**
 * Renderer for EntityRopeArrow.
 */
@OnlyIn(Dist.CLIENT)
public class RopeArrowRenderer extends ArrowRenderer<EntityRopeArrow> {

    /** Texture for the rope arrow (uses vanilla arrow texture) */
    private static final ResourceLocation TEXTURE =
        ResourceLocation.fromNamespaceAndPath(
            "minecraft",
            "textures/entity/projectiles/arrow.png"
        );

    public RopeArrowRenderer(EntityRendererProvider.Context context) {
        super(context);
    }

    @Override
    public ResourceLocation getTextureLocation(EntityRopeArrow entity) {
        return TEXTURE;
    }
}
