RenderSheep .java

net.minecraft.client.renderer.entity.RenderSheep (class, 26 lines): members: shearedSheepTextures, getEntityTexture. imports: LayerSheepWool, EntitySheep.

net.minecraft.client.renderer.entityclass26 linesclientextends RenderLiving<EntitySheep>910 B

API Surface (1)

ResourceLocation getEntityTexture(EntitySheep entity)

Fields & Constants (1)

shearedSheepTextures

String literals (1)

"textures/entity/sheep/sheep.png"

Code Graph: Dependencies (6)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

RenderSheep.java26 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.client.renderer.entity;
2
3
import net.minecraft.client.model.ModelBase;
4
import net.minecraft.client.renderer.entity.layers.LayerSheepWool;
5
import net.minecraft.entity.passive.EntitySheep;
6
import net.minecraft.util.ResourceLocation;
7
8
public class RenderSheep extends RenderLiving<EntitySheep>
9
{
10
    private static final ResourceLocation shearedSheepTextures = new ResourceLocation("textures/entity/sheep/sheep.png");
11
12
    public RenderSheep(RenderManager renderManagerIn, ModelBase modelBaseIn, float shadowSizeIn)
13
    {
14
        super(renderManagerIn, modelBaseIn, shadowSizeIn);
15
        this.addLayer(new LayerSheepWool(this));
16
    }
17
18
    /**
19
     * Returns the location of an entity's texture. Doesn't seem to be called unless you call Render.bindEntityTexture.
20
     */
21
    protected ResourceLocation getEntityTexture(EntitySheep entity)
22
    {
23
        return shearedSheepTextures;
24
    }
25
}
26

Deobfuscated MCP 1.8.9 source of RenderSheep from Marcelektro/MavenMCP-1.8.9 (net/minecraft/client/renderer/entity/RenderSheep.java), stored verbatim.