package pokefenn.totemic.client.renderer.entity;

import net.minecraft.client.renderer.entity.ArrowRenderer;
import net.minecraft.client.renderer.entity.EntityRendererProvider.Context;
import net.minecraft.resources.ResourceLocation;
import pokefenn.totemic.api.TotemicAPI;
import pokefenn.totemic.entity.InvisibleArrow;

public class InvisibleArrowRenderer extends ArrowRenderer<InvisibleArrow> {
    private static final ResourceLocation INVIS_ARROW_TEXTURE = new ResourceLocation(TotemicAPI.MOD_ID, "textures/entity/invis_arrow.png");

    public InvisibleArrowRenderer(Context pContext) {
        super(pContext);
    }

    @Override
    public ResourceLocation getTextureLocation(InvisibleArrow pEntity) {
        return INVIS_ARROW_TEXTURE;
    }
}

@@ -43,16 +43,205 @@
 ntity;%0A%0A
+import com.mojang.blaze3d.vertex.PoseStack;%0A%0Aimport net.minecraft.client.Minecraft;%0Aimport net.minecraft.client.renderer.MultiBufferSource;%0Aimport net.minecraft.client.renderer.RenderType;%0A
 import n
@@ -807,16 +807,614 @@
 %0A    %7D%0A%0A
+    @SuppressWarnings(%22resource%22)%0A    @Override%0A    public void render(InvisibleArrow pEntity, float pEntityYaw, float pPartialTicks, PoseStack pMatrixStack, MultiBufferSource pBuffer, int pPackedLight) %7B%0A        if(pEntity.getOwner() == Minecraft.getInstance().player) %7B%0A            //Override render type used by super method%0A            MultiBufferSource translucentBufferSrc = renderType -%3E pBuffer.getBuffer(RenderType.entityTranslucentCull(INVIS_ARROW_TEXTURE));%0A            super.render(pEntity, pEntityYaw, pPartialTicks, pMatrixStack, translucentBufferSrc, pPackedLight);%0A        %7D%0A    %7D%0A%0A
     @Ove

Make invisible arrow actually invisible