本文整理汇总了Java中net.minecraftforge.client.model.techne.TechneModel类的典型用法代码示例。如果您正苦于以下问题:Java TechneModel类的具体用法?Java TechneModel怎么用?Java TechneModel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TechneModel类属于net.minecraftforge.client.model.techne包,在下文中一共展示了TechneModel类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getModel
import net.minecraftforge.client.model.techne.TechneModel; //导入依赖的package包/类
public static Map<String, GroupObject> getModel(String modid, String modelPath) {
TechneModel tm = (TechneModel) modelLoader.loadInstance(new ResourceLocation(modid.toLowerCase(Locale.US), modelPath + ".tcn"));
return TechneUtil.bakeModel(tm, 1f / 16, new Matrix4f().scale(new Vector3f(-1, -1, 1)));
}
示例2: bakeModel
import net.minecraftforge.client.model.techne.TechneModel; //导入依赖的package包/类
/**
* Use this to convert TechneModel to it's static representation
*/
@SuppressWarnings("unchecked")
public static Map<String, GroupObject> bakeModel(TechneModel model, float scale, Matrix4f m, boolean rotateYFirst) {
Map<String, ModelRenderer> parts = (Map<String, ModelRenderer>) ObfuscationReflectionHelper.getPrivateValue(TechneModel.class, model, "parts");
Map<String, GroupObject> res = Maps.newHashMap();
for (Map.Entry<String, ModelRenderer> e : parts.entrySet()) {
GroupObject obj = bakeModel(e.getValue(), model, scale, m, rotateYFirst).get(0);
res.put(e.getKey(), obj);
}
return res;
}
示例3: getModelAll
import net.minecraftforge.client.model.techne.TechneModel; //导入依赖的package包/类
public static Collection<GroupObject> getModelAll(String modid, String modelPath) {
TechneModel tm = (TechneModel) modelLoader.loadInstance(new ResourceLocation(modid.toLowerCase(Locale.US), modelPath + ".tcn"));
return TechneUtil.bakeModel(tm, 1f / 16, new Matrix4f().scale(new Vector3f(-1, -1, 1))).values();
}