@Nullable
public RenderChunk getRenderChunk(BlockPos pos)
{
int i = pos.getX() >> 4;
int j = pos.getY() >> 4;
int k = pos.getZ() >> 4;
if (j >= 0 && j < this.countChunksY)
{
i = i % this.countChunksX;
if (i < 0)
{
i += this.countChunksX;
}
k = k % this.countChunksZ;
if (k < 0)
{
k += this.countChunksZ;
}
int l = (k * this.countChunksY + j) * this.countChunksX + i;
return this.renderChunks[l];
}
else
{
return null;
}
}
ViewFrustum.java 文件源码
java
阅读 19
收藏 0
点赞 0
评论 0
项目:Backmemed
作者:
评论列表
文章目录