本文整理汇总了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;
}
示例2: RenderSilverfish
import net.minecraft.client.model.ModelSilverfish; //导入依赖的package包/类
public RenderSilverfish(RenderManager renderManagerIn)
{
super(renderManagerIn, new ModelSilverfish(), 0.3F);
}
示例3: makeModel
import net.minecraft.client.model.ModelSilverfish; //导入依赖的package包/类
public ModelBase makeModel()
{
return new ModelSilverfish();
}
示例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;
}
}
}
}
示例5: RenderAmber
import net.minecraft.client.model.ModelSilverfish; //导入依赖的package包/类
public RenderAmber(){
this.model = new ModelBlock();
modelSilverfish = new ModelSilverfish();
modelSpider = new ModelSpider();
modelCompsognathus = new ModelCompsognathus();
}
示例6: RenderSilverfish
import net.minecraft.client.model.ModelSilverfish; //导入依赖的package包/类
public RenderSilverfish()
{
super(new ModelSilverfish(), 0.3F);
}
示例7: RenderSilverfish
import net.minecraft.client.model.ModelSilverfish; //导入依赖的package包/类
public RenderSilverfish() {
super(new ModelSilverfish(), 0.3F);
}