TransferNodePart.java 文件源码

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

项目:ExtraUtilities 作者:
@SideOnly(Side.CLIENT)
public boolean drawHighlight(final MovingObjectPosition hit, final EntityPlayer player, final float frame) {
    GL11.glEnable(3042);
    OpenGlHelper.glBlendFunc(770, 771, 1, 0);
    GL11.glColor4f(0.0f, 0.0f, 0.0f, 0.4f);
    GL11.glLineWidth(2.0f);
    GL11.glDisable(3553);
    GL11.glDepthMask(false);
    final float f1 = 0.002f;
    final double d0 = player.lastTickPosX + (player.posX - player.lastTickPosX) * frame;
    final double d2 = player.lastTickPosY + (player.posY - player.lastTickPosY) * frame;
    final double d3 = player.lastTickPosZ + (player.posZ - player.lastTickPosZ) * frame;
    RenderGlobal.drawOutlinedBoundingBox(this.getBounds().add(new Vector3((double)this.x(), (double)this.y(), (double)this.z())).toAABB().expand((double)f1, (double)f1, (double)f1).getOffsetBoundingBox(-d0, -d2, -d3), -1);
    GL11.glDepthMask(true);
    GL11.glEnable(3553);
    GL11.glDisable(3042);
    return true;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号