Last active
April 2, 2016 16:11
-
-
Save tinkerstudent/72236b9f39a8f184071c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.tinkeracademy.minecraft; | |
| import net.minecraft.client.model.ModelBase; | |
| import net.minecraft.client.renderer.entity.RenderManager; | |
| import net.minecraft.client.renderer.entity.RenderOcelot; | |
| import net.minecraft.entity.passive.EntityOcelot; | |
| import net.minecraft.util.ResourceLocation; | |
| import net.minecraftforge.fml.relauncher.Side; | |
| import net.minecraftforge.fml.relauncher.SideOnly; | |
| @SideOnly(Side.CLIENT) | |
| public class CatRenderer extends RenderOcelot | |
| { | |
| private static final ResourceLocation catTextures = new ResourceLocation(EntitiesMod.MODID, "textures/entity/cat.png");; | |
| public CatRenderer(RenderManager renderManager, ModelBase modelBase, float shadowSize) { | |
| super(renderManager, modelBase, shadowSize); | |
| } | |
| protected ResourceLocation getEntityTexture(EntityOcelot entity) | |
| { | |
| return catTextures; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment