public ModelRenderer getModelRenderer(ModelBase model, String modelPart) { if (!(model instanceof ModelVex)) { return null; } else { ModelRenderer modelrenderer = super.getModelRenderer(model, modelPart); if (modelrenderer != null) { return modelrenderer; } else { ModelVex modelvex = (ModelVex)model; return modelPart.equals("left_wing") ? (ModelRenderer)Reflector.getFieldValue(modelvex, Reflector.ModelVex_leftWing) : (modelPart.equals("right_wing") ? (ModelRenderer)Reflector.getFieldValue(modelvex, Reflector.ModelVex_rightWing) : null); } } }
/** * Renders the desired {@code T} type Entity. */ public void doRender(EntityVex entity, double x, double y, double z, float entityYaw, float partialTicks) { int i = ((ModelVex)this.mainModel).func_191228_a(); if (i != this.field_191345_k) { this.mainModel = new ModelVex(); this.field_191345_k = i; } super.doRender(entity, x, y, z, entityYaw, partialTicks); }
public int getModelVersion() { return new ModelVex().getModelVersion(); }
public ModelBase makeModel() { return new ModelVex(); }
public RenderVex(RenderManager p_i47190_1_) { super(p_i47190_1_, new ModelVex(), 0.3F); this.field_191345_k = ((ModelVex)this.mainModel).func_191228_a(); }