/**
* See {@link #getMatrixForAxisAndRotation(net.minecraft.util.EnumFacing.Axis, boolean, Rotation)}
*/
protected static Matrix4f getMatrixForAxis(EnumFacing.Axis axis, boolean isAxisInverted)
{
switch(axis)
{
case X:
return ForgeHooksClient.getMatrix(isAxisInverted ? ModelRotation.X90_Y270 : ModelRotation.X90_Y90);
case Y:
return ForgeHooksClient.getMatrix(isAxisInverted ? ModelRotation.X180_Y0 : ModelRotation.X0_Y0);
case Z:
return ForgeHooksClient.getMatrix(isAxisInverted ? ModelRotation.X90_Y0 : ModelRotation.X270_Y0);
default:
return ForgeHooksClient.getMatrix(ModelRotation.X0_Y0);
}
}
ShapeMeshGenerator.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:Hard-Science
作者:
评论列表
文章目录