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


Java ModelSilverfish类代码示例

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


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

示例1: SilverfishModel

import net.minecraft.client.model.ModelSilverfish; //导入依赖的package包/类
public SilverfishModel()
{
	normal = new ModelSilverfish();
	
	body = ReflectionHelper.getPrivateValue( ModelSilverfish.class, this, 0 );
	wings = ReflectionHelper.getPrivateValue( ModelSilverfish.class, this, 1 );
       body[ 3 ].rotateAngleX = body[ 4 ].rotateAngleX = body[ 5 ].rotateAngleX = body[ 6 ].rotateAngleX = 3.14f / 2;
       body[ 3 ].rotationPointZ = body[ 4 ].rotationPointZ = body[ 5 ].rotationPointZ = body[ 6 ].rotationPointZ = 0;
       body[ 6 ].offsetY = 0;
       body[ 5 ].offsetY = -0.1f;
       body[ 4 ].rotateAngleX *= -0.7f;
       body[ 4 ].offsetZ = 0.06f;
       body[ 4 ].offsetY = -0.2f;
       body[ 3 ].rotateAngleX *= -0.45f;
       body[ 3 ].offsetY = -0.3f;
       body[ 3 ].offsetZ = -0.05f;
       wings[ 1 ].rotateAngleX = body[ 5 ].rotateAngleX*1.4f;
       wings[ 1 ].rotationPointZ = body[ 5 ].rotationPointZ;
       wings[ 1 ].offsetY = body[ 4 ].offsetX;
       wings[ 1 ].offsetZ = -0.05f;
}
 
开发者ID:spacechase0,项目名称:UsefulPets,代码行数:22,代码来源:SilverfishModel.java

示例2: RenderSilverfish

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

示例3: makeModel

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

示例4: getModelRenderer

import net.minecraft.client.model.ModelSilverfish; //导入依赖的package包/类
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
    if (!(model instanceof ModelSilverfish))
    {
        return null;
    }
    else
    {
        ModelSilverfish modelsilverfish = (ModelSilverfish)model;
        String s = "body";

        if (modelPart.startsWith(s))
        {
            ModelRenderer[] amodelrenderer1 = (ModelRenderer[])((ModelRenderer[])Reflector.getFieldValue(modelsilverfish, Reflector.ModelSilverfish_bodyParts));

            if (amodelrenderer1 == null)
            {
                return null;
            }
            else
            {
                String s3 = modelPart.substring(s.length());
                int j = Config.parseInt(s3, -1);
                --j;
                return j >= 0 && j < amodelrenderer1.length ? amodelrenderer1[j] : null;
            }
        }
        else
        {
            String s1 = "wing";

            if (modelPart.startsWith(s1))
            {
                ModelRenderer[] amodelrenderer = (ModelRenderer[])((ModelRenderer[])Reflector.getFieldValue(modelsilverfish, Reflector.ModelSilverfish_wingParts));

                if (amodelrenderer == null)
                {
                    return null;
                }
                else
                {
                    String s2 = modelPart.substring(s1.length());
                    int i = Config.parseInt(s2, -1);
                    --i;
                    return i >= 0 && i < amodelrenderer.length ? amodelrenderer[i] : null;
                }
            }
            else
            {
                return null;
            }
        }
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:55,代码来源:ModelAdapterSilverfish.java

示例5: RenderAmber

import net.minecraft.client.model.ModelSilverfish; //导入依赖的package包/类
public RenderAmber(){
	this.model = new ModelBlock();
	modelSilverfish = new ModelSilverfish();
	modelSpider = new ModelSpider();
	modelCompsognathus = new ModelCompsognathus();
}
 
开发者ID:Alex-the-666,项目名称:It-s-About-Time-Minecraft-Mod,代码行数:7,代码来源:RenderAmber.java

示例6: RenderSilverfish

import net.minecraft.client.model.ModelSilverfish; //导入依赖的package包/类
public RenderSilverfish()
{
    super(new ModelSilverfish(), 0.3F);
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:5,代码来源:RenderSilverfish.java

示例7: RenderSilverfish

import net.minecraft.client.model.ModelSilverfish; //导入依赖的package包/类
public RenderSilverfish() {
   super(new ModelSilverfish(), 0.3F);
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:4,代码来源:RenderSilverfish.java


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