RenderUtils.java 文件源码

java
阅读 29 收藏 0 点赞 0 评论 0

项目:WorldProtect 作者:
@SideOnly(Side.CLIENT)
public static void translateAgainstPlayer (BlockPos pos) {

    final float x = (float) (pos.getX() - TileEntityRendererDispatcher.staticPlayerX);
    final float y = (float) (pos.getY() - TileEntityRendererDispatcher.staticPlayerY);
    final float z = (float) (pos.getZ() - TileEntityRendererDispatcher.staticPlayerZ);
    GlStateManager.translate(x + 0.5, y + 0.5, z + 0.5);
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号