本文整理汇总了Java中net.minecraft.client.model.ModelVillager类的典型用法代码示例。如果您正苦于以下问题:Java ModelVillager类的具体用法?Java ModelVillager怎么用?Java ModelVillager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ModelVillager类属于net.minecraft.client.model包,在下文中一共展示了ModelVillager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getModelRenderer
import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
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)))));
}
}
示例2: registerAll
import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
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());
}
示例3: renderEntities
import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
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));
}
示例4: RenderVillager
import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public RenderVillager(RenderManager renderManagerIn)
{
super(renderManagerIn, new ModelVillager(0.0F), 0.5F);
this.addLayer(new LayerCustomHead(this.getMainModel().villagerHead));
}
示例5: getMainModel
import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public ModelVillager getMainModel()
{
return (ModelVillager)super.getMainModel();
}
示例6: makeModel
import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public ModelBase makeModel()
{
return new ModelVillager(0.0F);
}
示例7: RenderVillagerDim
import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public RenderVillagerDim()
{
super(new ModelVillager(0.0F), 0.5F);
this.villagerModel = (ModelVillager)this.mainModel;
}
示例8: RenderFugitive
import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public RenderFugitive(RenderManager renderManagerIn) {
super(renderManagerIn, new ModelVillager(0.0F), 0.5F);
this.addLayer(new LayerCustomHead(this.getMainModel().villagerHead));
}
示例9: getMainModel
import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public ModelVillager getMainModel() {
return (ModelVillager) super.getMainModel();
}
示例10: RenderShopkeeper
import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public RenderShopkeeper(RenderManager renderManagerIn) {
super(renderManagerIn, new ModelVillager(0.0F), 0.5F);
this.addLayer(new LayerCustomHead(this.getMainModel().villagerHead));
}
示例11: RenderGreenVillager
import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
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));
}
示例12: func_177134_g
import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public ModelVillager func_177134_g()
{
return (ModelVillager)super.getMainModel();
}
示例13: RenderVillager
import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public RenderVillager()
{
super(new ModelVillager(0.0F), 0.5F);
this.villagerModel = (ModelVillager)this.mainModel;
}
示例14: RenderVillager
import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public RenderVillager() {
super(new ModelVillager(0.0F), 0.5F);
this.field_77056_a = (ModelVillager)this.field_77045_g;
}
示例15: TileEntityVillagerBlockRenderer
import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public TileEntityVillagerBlockRenderer()
{
ModelVillager villager = new ModelVillager(0);
this.head = villager.villagerHead;
}