use of net.minecraft.client.renderer.block.model.ItemTransformVec3f in project BuildCraft by BuildCraft.
the class ModelItemSimple method def.
private static ItemTransformVec3f def(float rx, float ry, float rz, float tx, float ty, float tz, float scale) {
Vector3f rot = new Vector3f(rx, ry, rz);
Vector3f translate = new Vector3f(tx / 16f, ty / 16f, tz / 16f);
return new ItemTransformVec3f(rot, translate, new Vector3f(scale, scale, scale));
}
use of net.minecraft.client.renderer.block.model.ItemTransformVec3f in project BuildCraft by BuildCraft.
the class ModelItemSimple method translate.
private static ItemTransformVec3f translate(ItemTransformVec3f from, double dx, double dy, double dz) {
Vector3f nTranslation = new Vector3f(from.translation);
nTranslation.translate((float) dx, (float) dy, (float) dz);
return new ItemTransformVec3f(from.rotation, nTranslation, from.scale);
}
Aggregations