当前位置: 首页>>代码示例>>Java>>正文


Java ModelBat类代码示例

本文整理汇总了Java中net.minecraft.client.model.ModelBat的典型用法代码示例。如果您正苦于以下问题:Java ModelBat类的具体用法?Java ModelBat怎么用?Java ModelBat使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ModelBat类属于net.minecraft.client.model包,在下文中一共展示了ModelBat类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getModelRenderer

import net.minecraft.client.model.ModelBat; //导入依赖的package包/类
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)))));
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:13,代码来源:ModelAdapterBat.java

示例2: doRender

import net.minecraft.client.model.ModelBat; //导入依赖的package包/类
/**
 * 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);
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:19,代码来源:RenderBat.java

示例3: func_82443_a

import net.minecraft.client.model.ModelBat; //导入依赖的package包/类
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);
}
 
开发者ID:MinecraftModArchive,项目名称:Runes-And-Silver,代码行数:13,代码来源:RenderFairy.java

示例4: doRender

import net.minecraft.client.model.ModelBat; //导入依赖的package包/类
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_);
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:13,代码来源:RenderBat.java

示例5: func_82443_a

import net.minecraft.client.model.ModelBat; //导入依赖的package包/类
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_);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:10,代码来源:RenderBat.java

示例6: func_82443_a

import net.minecraft.client.model.ModelBat; //导入依赖的package包/类
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);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:13,代码来源:RenderBat.java

示例7: func_82443_a

import net.minecraft.client.model.ModelBat; //导入依赖的package包/类
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);
}
 
开发者ID:hanetzer,项目名称:CreepyPastaCraft,代码行数:13,代码来源:RenderVampireBat.java

示例8: RenderBat

import net.minecraft.client.model.ModelBat; //导入依赖的package包/类
public RenderBat(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelBat(), 0.25F);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:5,代码来源:RenderBat.java

示例9: makeModel

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

示例10: RenderBat

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

示例11: RenderBat

import net.minecraft.client.model.ModelBat; //导入依赖的package包/类
public RenderBat() {
   super(new ModelBat(), 0.25F);
   this.field_82446_a = ((ModelBat)this.field_77045_g).func_82889_a();
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:5,代码来源:RenderBat.java


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