public ModelRenderer getModelRenderer(ModelBase model, String modelPart) { if (!(model instanceof ModelVillager)) { return null; } else { ModelVillager modelvillager = (ModelVillager)model; return modelPart.equals("head") ? modelvillager.villagerHead : (modelPart.equals("body") ? modelvillager.villagerBody : (modelPart.equals("arms") ? modelvillager.villagerArms : (modelPart.equals("left_leg") ? modelvillager.leftVillagerLeg : (modelPart.equals("right_leg") ? modelvillager.rightVillagerLeg : (modelPart.equals("nose") ? modelvillager.villagerNose : null))))); } }
private static void registerAll(){ map = new HashMap<EnumNPCModel, ModelBase>(); registerItem(EnumNPCModel.Player, new ModelPlayer(0f, false)); registerItem(EnumNPCModel.Zombie, new ModelZombie()); registerItem(EnumNPCModel.Villager, new ModelVillager(0f)); registerItem(EnumNPCModel.Skeleton, new ModifiedModelSkeleton()); registerItem(EnumNPCModel.Creeper, new ModelCreeper()); registerItem(EnumNPCModel.Pig, new ModelPig(0f)); registerItem(EnumNPCModel.Cow, new ModelCow()); }
private void renderEntities() { VillagerRegistry.instance().registerVillagerSkin(MAEntityRegistry.villagerID, MAEntityRegistry.texture); RenderingRegistry.registerEntityRenderingHandler(EntityMagician.class, new RenderEntityMagician(new ModelMagician(), 1F)); RenderingRegistry.registerEntityRenderingHandler(EntitySoulFragment.class, new RenderEntitySoulFragment(new ModelBiped(), 1F)); RenderingRegistry.registerEntityRenderingHandler(EntityBossOverworld.class, new RenderBossOverworld(new ModelOverworldBoss(), 1F)); RenderingRegistry.registerEntityRenderingHandler(EntityBossNether.class, new RenderBossNether(new ModelNetherBoss(), 1F)); RenderingRegistry.registerEntityRenderingHandler(EntityBossEnder.class, new RenderBossEnder(new ModelEndBoss(), 1F)); RenderingRegistry.registerEntityRenderingHandler(EntityPetPheonix.class, new RenderPetPheonix(new ModelVillager(0.0F), 1F)); RenderingRegistry.registerEntityRenderingHandler(EntityPetAppling.class, new RenderPetAppling(new ModelAppling(), 1F)); RenderingRegistry.registerEntityRenderingHandler(EntityPetRat.class, new RenderPetRat(new ModelVillager(0.0F), 1F)); RenderingRegistry.registerEntityRenderingHandler(EntityPetDragon.class, new RenderPetDragon(new ModelVillager(0.0F), 1F)); }
public RenderVillager(RenderManager renderManagerIn) { super(renderManagerIn, new ModelVillager(0.0F), 0.5F); this.addLayer(new LayerCustomHead(this.getMainModel().villagerHead)); }
public ModelVillager getMainModel() { return (ModelVillager)super.getMainModel(); }
public ModelBase makeModel() { return new ModelVillager(0.0F); }
public RenderVillagerDim() { super(new ModelVillager(0.0F), 0.5F); this.villagerModel = (ModelVillager)this.mainModel; }
public RenderFugitive(RenderManager renderManagerIn) { super(renderManagerIn, new ModelVillager(0.0F), 0.5F); this.addLayer(new LayerCustomHead(this.getMainModel().villagerHead)); }
public ModelVillager getMainModel() { return (ModelVillager) super.getMainModel(); }
public RenderShopkeeper(RenderManager renderManagerIn) { super(renderManagerIn, new ModelVillager(0.0F), 0.5F); this.addLayer(new LayerCustomHead(this.getMainModel().villagerHead)); }
public RenderGreenVillager(RenderManager p_i46132_1_) { super(p_i46132_1_, new ModelVillager(0.0F), 0.5F); this.addLayer(new LayerCustomHead(this.func_177134_g().villagerHead)); }
public ModelVillager func_177134_g() { return (ModelVillager)super.getMainModel(); }
public RenderVillager() { super(new ModelVillager(0.0F), 0.5F); this.villagerModel = (ModelVillager)this.mainModel; }
public RenderVillager() { super(new ModelVillager(0.0F), 0.5F); this.field_77056_a = (ModelVillager)this.field_77045_g; }
public TileEntityVillagerBlockRenderer() { ModelVillager villager = new ModelVillager(0); this.head = villager.villagerHead; }