24 lines
864 B
Java
24 lines
864 B
Java
package net.minecraft.client.renderer.entity;
|
|
|
|
import net.fabricmc.api.EnvType;
|
|
import net.fabricmc.api.Environment;
|
|
import net.minecraft.client.model.OcelotModel;
|
|
import net.minecraft.client.model.geom.ModelLayers;
|
|
import net.minecraft.resources.ResourceLocation;
|
|
import net.minecraft.world.entity.animal.Ocelot;
|
|
|
|
@Environment(EnvType.CLIENT)
|
|
public class OcelotRenderer extends MobRenderer<Ocelot, OcelotModel<Ocelot>> {
|
|
private static final ResourceLocation CAT_OCELOT_LOCATION = ResourceLocation.withDefaultNamespace("textures/entity/cat/ocelot.png");
|
|
|
|
public OcelotRenderer(EntityRendererProvider.Context context) {
|
|
super(context, new OcelotModel<>(context.bakeLayer(ModelLayers.OCELOT)), 0.4F);
|
|
}
|
|
|
|
/**
|
|
* Returns the location of an entity's texture.
|
|
*/
|
|
public ResourceLocation getTextureLocation(Ocelot entity) {
|
|
return CAT_OCELOT_LOCATION;
|
|
}
|
|
}
|