minecraft-src/net/minecraft/client/renderer/entity/SpectralArrowRenderer.java
2025-07-04 03:45:38 +03:00

26 lines
930 B
Java

package net.minecraft.client.renderer.entity;
import net.fabricmc.api.EnvType;
import net.fabricmc.api.Environment;
import net.minecraft.client.renderer.entity.EntityRendererProvider.Context;
import net.minecraft.client.renderer.entity.state.ArrowRenderState;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.entity.projectile.SpectralArrow;
@Environment(EnvType.CLIENT)
public class SpectralArrowRenderer extends ArrowRenderer<SpectralArrow, ArrowRenderState> {
public static final ResourceLocation SPECTRAL_ARROW_LOCATION = ResourceLocation.withDefaultNamespace("textures/entity/projectiles/spectral_arrow.png");
public SpectralArrowRenderer(Context context) {
super(context);
}
@Override
protected ResourceLocation getTextureLocation(ArrowRenderState renderState) {
return SPECTRAL_ARROW_LOCATION;
}
public ArrowRenderState createRenderState() {
return new ArrowRenderState();
}
}