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


Java ModelDragon类代码示例

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


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

示例1: RenderDragon

import net.minecraft.client.model.ModelDragon; //导入依赖的package包/类
public RenderDragon(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelDragon(0.0F), 0.5F);
    this.modelDragon = (ModelDragon)this.mainModel;
    this.addLayer(new LayerEnderDragonEyes(this));
    this.addLayer(new LayerEnderDragonDeath());
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:8,代码来源:RenderDragon.java

示例2: getModelRenderer

import net.minecraft.client.model.ModelDragon; //导入依赖的package包/类
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelDragon))
    {
        return null;
    }
    else
    {
        ModelDragon modeldragon = (ModelDragon)model;
        return modelPart.equals("head") ? (ModelRenderer)Reflector.getFieldValue(modeldragon, Reflector.ModelDragon_ModelRenderers, 0) : (modelPart.equals("spine") ? (ModelRenderer)Reflector.getFieldValue(modeldragon, Reflector.ModelDragon_ModelRenderers, 1) : (modelPart.equals("jaw") ? (ModelRenderer)Reflector.getFieldValue(modeldragon, Reflector.ModelDragon_ModelRenderers, 2) : (modelPart.equals("body") ? (ModelRenderer)Reflector.getFieldValue(modeldragon, Reflector.ModelDragon_ModelRenderers, 3) : (modelPart.equals("rear_leg") ? (ModelRenderer)Reflector.getFieldValue(modeldragon, Reflector.ModelDragon_ModelRenderers, 4) : (modelPart.equals("front_leg") ? (ModelRenderer)Reflector.getFieldValue(modeldragon, Reflector.ModelDragon_ModelRenderers, 5) : (modelPart.equals("rear_leg_tip") ? (ModelRenderer)Reflector.getFieldValue(modeldragon, Reflector.ModelDragon_ModelRenderers, 6) : (modelPart.equals("front_leg_tip") ? (ModelRenderer)Reflector.getFieldValue(modeldragon, Reflector.ModelDragon_ModelRenderers, 7) : (modelPart.equals("rear_foot") ? (ModelRenderer)Reflector.getFieldValue(modeldragon, Reflector.ModelDragon_ModelRenderers, 8) : (modelPart.equals("front_foot") ? (ModelRenderer)Reflector.getFieldValue(modeldragon, Reflector.ModelDragon_ModelRenderers, 9) : (modelPart.equals("wing") ? (ModelRenderer)Reflector.getFieldValue(modeldragon, Reflector.ModelDragon_ModelRenderers, 10) : (modelPart.equals("wing_tip") ? (ModelRenderer)Reflector.getFieldValue(modeldragon, Reflector.ModelDragon_ModelRenderers, 11) : null)))))))))));
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:13,代码来源:ModelAdapterDragon.java

示例3: makeModel

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

示例4: RenderDragon

import net.minecraft.client.model.ModelDragon; //导入依赖的package包/类
public RenderDragon(RenderManager renderManagerIn)
{
    super(renderManagerIn, new ModelDragon(0.0F), 0.5F);
    this.addLayer(new LayerEnderDragonEyes(this));
    this.addLayer(new LayerEnderDragonDeath());
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:7,代码来源:RenderDragon.java

示例5: RenderDragon

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

示例6: RenderDragon

import net.minecraft.client.model.ModelDragon; //导入依赖的package包/类
public RenderDragon() {
   super(new ModelDragon(0.0F), 0.5F);
   this.field_77084_b = (ModelDragon)this.field_77045_g;
   this.func_77042_a(this.field_77045_g);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:6,代码来源:RenderDragon.java


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