22 lines
744 B
Java
22 lines
744 B
Java
package net.minecraft.client.renderer.entity;
|
|
|
|
import net.fabricmc.api.EnvType;
|
|
import net.fabricmc.api.Environment;
|
|
import net.minecraft.resources.ResourceLocation;
|
|
import net.minecraft.world.entity.projectile.SpectralArrow;
|
|
|
|
@Environment(EnvType.CLIENT)
|
|
public class SpectralArrowRenderer extends ArrowRenderer<SpectralArrow> {
|
|
public static final ResourceLocation SPECTRAL_ARROW_LOCATION = ResourceLocation.withDefaultNamespace("textures/entity/projectiles/spectral_arrow.png");
|
|
|
|
public SpectralArrowRenderer(EntityRendererProvider.Context context) {
|
|
super(context);
|
|
}
|
|
|
|
/**
|
|
* Returns the location of an entity's texture.
|
|
*/
|
|
public ResourceLocation getTextureLocation(SpectralArrow entity) {
|
|
return SPECTRAL_ARROW_LOCATION;
|
|
}
|
|
}
|