WorldRenderer.java 文件源码

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

项目:Cauldron 作者:
public void setPosition(int p_78913_1_, int p_78913_2_, int p_78913_3_)
{
    if (p_78913_1_ != this.posX || p_78913_2_ != this.posY || p_78913_3_ != this.posZ)
    {
        this.setDontDraw();
        this.posX = p_78913_1_;
        this.posY = p_78913_2_;
        this.posZ = p_78913_3_;
        this.posXPlus = p_78913_1_ + 8;
        this.posYPlus = p_78913_2_ + 8;
        this.posZPlus = p_78913_3_ + 8;
        this.posXClip = p_78913_1_ & 1023;
        this.posYClip = p_78913_2_;
        this.posZClip = p_78913_3_ & 1023;
        this.posXMinus = p_78913_1_ - this.posXClip;
        this.posYMinus = p_78913_2_ - this.posYClip;
        this.posZMinus = p_78913_3_ - this.posZClip;
        float f = 6.0F;
        this.rendererBoundingBox = AxisAlignedBB.getBoundingBox((double)((float)p_78913_1_ - f), (double)((float)p_78913_2_ - f), (double)((float)p_78913_3_ - f), (double)((float)(p_78913_1_ + 16) + f), (double)((float)(p_78913_2_ + 16) + f), (double)((float)(p_78913_3_ + 16) + f));
        GL11.glNewList(this.glRenderList + 2, GL11.GL_COMPILE);
        RenderItem.renderAABB(AxisAlignedBB.getBoundingBox((double)((float)this.posXClip - f), (double)((float)this.posYClip - f), (double)((float)this.posZClip - f), (double)((float)(this.posXClip + 16) + f), (double)((float)(this.posYClip + 16) + f), (double)((float)(this.posZClip + 16) + f)));
        GL11.glEndList();
        this.markDirty();
    }
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号