本文整理汇总了Java中me.ichun.mods.ichunutil.client.model.util.ModelHelper类的典型用法代码示例。如果您正苦于以下问题:Java ModelHelper类的具体用法?Java ModelHelper怎么用?Java ModelHelper使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ModelHelper类属于me.ichun.mods.ichunutil.client.model.util包,在下文中一共展示了ModelHelper类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ModelShattered
import me.ichun.mods.ichunutil.client.model.util.ModelHelper; //导入依赖的package包/类
public ModelShattered(EntityShattered ent)
{
this.shatteredEnt = ent;
this.rand = new Random();
if(ent != null)
{
RenderManager manager = Minecraft.getMinecraft().getRenderManager();
this.entRenderer = manager.getEntityRenderObject(ent.acquired);
if(manager.renderEngine != null && manager.renderViewEntity != null && ent.acquired != null)
{
manager.getEntityRenderObject(ent.acquired).doRender(ent.acquired, 0.0D, -500D, 0.0D, 0.0F, 1.0F);
}
this.modelList = ModelHelper.getModelCubesCopy(ModelHelper.getModelCubes(ent.acquired), this, ent.acquired);
for(ModelRenderer cube : modelList)
{
cube.rotationPointY -= 8.0D;
}
}
this.renderYaw = ent.acquired.renderYawOffset;
}
示例2: getHeadInfo
import me.ichun.mods.ichunutil.client.model.util.ModelHelper; //导入依赖的package包/类
@Nullable
public static CubeInfo getHeadInfo(HeadBase helper)
{
if(helper.headInfo == null && helper.headModel != null && !helper.headModel[0].cubeList.isEmpty())
{
ModelBox box = helper.headModel[0].cubeList.get(0);
helper.headInfo = ModelHelper.createCubeInfoFromModelBox(helper.headModel[0], box, box.boxName != null ? (box.boxName.substring(box.boxName.lastIndexOf(".") + 1)) : "");
}
return (CubeInfo)helper.headInfo;
}
示例3: ModelInfo
import me.ichun.mods.ichunutil.client.model.util.ModelHelper; //导入依赖的package包/类
public ModelInfo(ResourceLocation texture, ModelBase modelParent, Class clz)
{
this.texture = texture;
this.modelParent = modelParent;
this.modelList = ModelHelper.getModelCubesWithNames(modelParent);
this.clz = clz;
}