• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java ModelVillager类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了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)))));
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:13,代码来源:ModelAdapterVillager.java


示例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());
}
 
开发者ID:tiffit,项目名称:TaleCraft,代码行数:11,代码来源:NPCModelToModelBase.java


示例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));
}
 
开发者ID:MagiciansArtificeTeam,项目名称:Magicians-Artifice,代码行数:14,代码来源:ClientProxy.java


示例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));
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:6,代码来源:RenderVillager.java


示例5: getMainModel

import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public ModelVillager getMainModel()
{
    return (ModelVillager)super.getMainModel();
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:RenderVillager.java


示例6: makeModel

import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public ModelBase makeModel()
{
    return new ModelVillager(0.0F);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:5,代码来源:ModelAdapterVillager.java


示例7: RenderVillagerDim

import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public RenderVillagerDim()
{
    super(new ModelVillager(0.0F), 0.5F);
    this.villagerModel = (ModelVillager)this.mainModel;
}
 
开发者ID:GhostMonk3408,项目名称:MidgarCrusade,代码行数:6,代码来源:RenderVillagerDim.java


示例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));
}
 
开发者ID:ToroCraft,项目名称:ToroQuest,代码行数:5,代码来源:RenderFugitive.java


示例9: getMainModel

import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public ModelVillager getMainModel() {
	return (ModelVillager) super.getMainModel();
}
 
开发者ID:ToroCraft,项目名称:ToroQuest,代码行数:4,代码来源:RenderFugitive.java


示例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));
}
 
开发者ID:ToroCraft,项目名称:ToroQuest,代码行数:5,代码来源:RenderShopkeeper.java


示例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));
}
 
开发者ID:Stormister,项目名称:Rediscovered-Mod-1.8,代码行数:6,代码来源:RenderGreenVillager.java


示例12: func_177134_g

import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public ModelVillager func_177134_g()
{
    return (ModelVillager)super.getMainModel();
}
 
开发者ID:Stormister,项目名称:Rediscovered-Mod-1.8,代码行数:5,代码来源:RenderGreenVillager.java


示例13: RenderVillager

import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public RenderVillager()
{
    super(new ModelVillager(0.0F), 0.5F);
    this.villagerModel = (ModelVillager)this.mainModel;
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:6,代码来源:RenderVillager.java


示例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;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:5,代码来源:RenderVillager.java


示例15: TileEntityVillagerBlockRenderer

import net.minecraft.client.model.ModelVillager; //导入依赖的package包/类
public TileEntityVillagerBlockRenderer()
{
	ModelVillager villager = new ModelVillager(0);
	this.head = villager.villagerHead;
}
 
开发者ID:a1lic,项目名称:McMod-CubicVillager,代码行数:6,代码来源:TileEntityVillagerBlockRenderer.java



注:本文中的net.minecraft.client.model.ModelVillager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java MockSyncService类代码示例发布时间:2022-05-21
下一篇:
Java LdapUserDetails类代码示例发布时间:2022-05-21
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap