本文整理汇总了Java中net.minecraft.client.model.ModelMagmaCube类的典型用法代码示例。如果您正苦于以下问题:Java ModelMagmaCube类的具体用法?Java ModelMagmaCube怎么用?Java ModelMagmaCube使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
ModelMagmaCube类属于net.minecraft.client.model包,在下文中一共展示了ModelMagmaCube类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: RenderMagmaCube
import net.minecraft.client.model.ModelMagmaCube; //导入依赖的package包/类
public RenderMagmaCube(RenderManager renderManagerIn)
{
super(renderManagerIn, new ModelMagmaCube(), 0.25F);
}
示例2: makeModel
import net.minecraft.client.model.ModelMagmaCube; //导入依赖的package包/类
public ModelBase makeModel()
{
return new ModelMagmaCube();
}
示例3: getModelRenderer
import net.minecraft.client.model.ModelMagmaCube; //导入依赖的package包/类
public ModelRenderer getModelRenderer(ModelBase model, String modelPart)
{
if (!(model instanceof ModelMagmaCube))
{
return null;
}
else
{
ModelMagmaCube modelmagmacube = (ModelMagmaCube)model;
if (modelPart.equals("core"))
{
return (ModelRenderer)Reflector.getFieldValue(modelmagmacube, Reflector.ModelMagmaCube_core);
}
else
{
String s = "segment";
if (modelPart.startsWith(s))
{
ModelRenderer[] amodelrenderer = (ModelRenderer[])((ModelRenderer[])Reflector.getFieldValue(modelmagmacube, Reflector.ModelMagmaCube_segments));
if (amodelrenderer == null)
{
return null;
}
else
{
String s1 = modelPart.substring(s.length());
int i = Config.parseInt(s1, -1);
--i;
return i >= 0 && i < amodelrenderer.length ? amodelrenderer[i] : null;
}
}
else
{
return null;
}
}
}
}
示例4: RenderMagmaCube
import net.minecraft.client.model.ModelMagmaCube; //导入依赖的package包/类
public RenderMagmaCube()
{
super(new ModelMagmaCube(), 0.25F);
}
示例5: RenderMagmaCube
import net.minecraft.client.model.ModelMagmaCube; //导入依赖的package包/类
public RenderMagmaCube() {
super(new ModelMagmaCube(), 0.25F);
}