Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package jip.jipmod.init.modEntityClasses;
- import jip.jipmod.JipMod;
- import jip.jipmod.Reference;
- import net.minecraft.client.model.ModelBase;
- import net.minecraft.client.renderer.entity.RenderLiving;
- import net.minecraft.client.renderer.entity.RenderManager;
- import net.minecraft.entity.Entity;
- import net.minecraft.entity.EntityLivingBase;
- import net.minecraft.util.ResourceLocation;
- public class RenderHorror extends RenderLiving {
- protected ResourceLocation horrorTexture;
- public RenderHorror(RenderManager p_i46153_1_, ModelBase par1ModelBase, float parShadowSize) {
- super(p_i46153_1_, par1ModelBase, parShadowSize);
- // TODO Auto-generated constructor stub
- setEntityTexture();
- }
- protected void preRenderCallBack(EntityLivingBase entity, float f){
- preRenderCallbackHorror((EntityHorror) entity, f);
- }
- protected void preRenderCallbackHorror(EntityHorror entity, float f){
- }
- protected void setEntityTexture(){
- horrorTexture = new ResourceLocation(Reference.MOD_ID+":textures/entity/horror.png");
- }
- @Override
- protected ResourceLocation getEntityTexture(Entity entity) {
- // TODO Auto-generated method stub
- return horrorTexture;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment