24 lines
863 B
Java
24 lines
863 B
Java
package net.minecraft.client.renderer.entity;
|
|
|
|
import net.fabricmc.api.EnvType;
|
|
import net.fabricmc.api.Environment;
|
|
import net.minecraft.client.model.RavagerModel;
|
|
import net.minecraft.client.model.geom.ModelLayers;
|
|
import net.minecraft.resources.ResourceLocation;
|
|
import net.minecraft.world.entity.monster.Ravager;
|
|
|
|
@Environment(EnvType.CLIENT)
|
|
public class RavagerRenderer extends MobRenderer<Ravager, RavagerModel> {
|
|
private static final ResourceLocation TEXTURE_LOCATION = ResourceLocation.withDefaultNamespace("textures/entity/illager/ravager.png");
|
|
|
|
public RavagerRenderer(EntityRendererProvider.Context context) {
|
|
super(context, new RavagerModel(context.bakeLayer(ModelLayers.RAVAGER)), 1.1F);
|
|
}
|
|
|
|
/**
|
|
* Returns the location of an entity's texture.
|
|
*/
|
|
public ResourceLocation getTextureLocation(Ravager entity) {
|
|
return TEXTURE_LOCATION;
|
|
}
|
|
}
|