public ModelRenderer getModelRenderer(ModelBase model, String modelPart) { if (!(model instanceof ModelBat)) { return null; } else { ModelBat modelbat = (ModelBat)model; return modelPart.equals("head") ? (ModelRenderer)Reflector.getFieldValue(modelbat, Reflector.ModelBat_ModelRenderers, 0) : (modelPart.equals("body") ? (ModelRenderer)Reflector.getFieldValue(modelbat, Reflector.ModelBat_ModelRenderers, 1) : (modelPart.equals("right_wing") ? (ModelRenderer)Reflector.getFieldValue(modelbat, Reflector.ModelBat_ModelRenderers, 2) : (modelPart.equals("left_wing") ? (ModelRenderer)Reflector.getFieldValue(modelbat, Reflector.ModelBat_ModelRenderers, 3) : (modelPart.equals("outer_right_wing") ? (ModelRenderer)Reflector.getFieldValue(modelbat, Reflector.ModelBat_ModelRenderers, 4) : (modelPart.equals("outer_left_wing") ? (ModelRenderer)Reflector.getFieldValue(modelbat, Reflector.ModelBat_ModelRenderers, 5) : null))))); } }
/** * Actually renders the given argument. This is a synthetic bridge method, always casting down its argument and then * handing it off to a worker function which does the actual work. In all probabilty, the class Render is generic * (Render<T extends Entity) and this method has signature public void doRender(T entity, double d, double d1, * double d2, float f, float f1). But JAD is pre 1.5 so doesn't do that. */ public void doRender(EntityBat par1EntityBat, double par2, double par4, double par6, float par8, float par9) { int var10 = ((ModelBat)this.mainModel).getBatSize(); if (var10 != this.renderedBatSize) { this.renderedBatSize = var10; this.mainModel = new ModelBat(); } super.doRender((EntityLiving)par1EntityBat, par2, par4, par6, par8, par9); }
public void func_82443_a(EntityFairy par1EntityFairy, double par2, double par4, double par6, float par8, float par9) { int i = ((ModelFairy)this.mainModel).getBatSize(); if (i != this.renderedFairySize) { this.renderedFairySize = i; this.mainModel = new ModelBat(); } super.doRenderLiving(par1EntityFairy, par2, par4, par6, par8, par9); }
public void doRender(EntityBat p_76986_1_, double p_76986_2_, double p_76986_4_, double p_76986_6_, float p_76986_8_, float p_76986_9_) { int i = ((ModelBat)this.mainModel).getBatSize(); if (i != this.renderedBatSize) { this.renderedBatSize = i; this.mainModel = new ModelBat(); } super.doRender((EntityLiving)p_76986_1_, p_76986_2_, p_76986_4_, p_76986_6_, p_76986_8_, p_76986_9_); }
public void func_82443_a(EntityBat p_82443_1_, double p_82443_2_, double p_82443_4_, double p_82443_6_, float p_82443_8_, float p_82443_9_) { int var10 = ((ModelBat)this.field_77045_g).func_82889_a(); if(var10 != this.field_82446_a) { this.field_82446_a = var10; this.field_77045_g = new ModelBat(); } super.func_77031_a(p_82443_1_, p_82443_2_, p_82443_4_, p_82443_6_, p_82443_8_, p_82443_9_); }
public void func_82443_a(EntityBat par1EntityBat, double par2, double par4, double par6, float par8, float par9) { int i = ((ModelBat)this.mainModel).getBatSize(); if (i != this.renderedBatSize) { this.renderedBatSize = i; this.mainModel = new ModelBat(); } super.doRenderLiving(par1EntityBat, par2, par4, par6, par8, par9); }
public void func_82443_a(EntityVampireBat entity, double par2, double par4, double par6, float par8, float par9) { int i = ((ModelVampireBat)this.mainModel).getBatSize(); if (i != this.renderedBatSize) { this.renderedBatSize = i; this.mainModel = new ModelBat(); } super.doRender(entity, par2, par4, par6, par8, par9); }
public RenderBat(RenderManager renderManagerIn) { super(renderManagerIn, new ModelBat(), 0.25F); }
public ModelBase makeModel() { return new ModelBat(); }
public RenderBat() { super(new ModelBat(), 0.25F); this.renderedBatSize = ((ModelBat)this.mainModel).getBatSize(); }
public RenderBat() { super(new ModelBat(), 0.25F); this.field_82446_a = ((ModelBat)this.field_77045_g).func_82889_a(); }