FlatRayTargetRender.java 文件源码

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

项目:Factorization 作者:
@Override
public void doRender(FlatRayTarget entity, double x, double y, double z, float entityYaw, float partialTicks) {
    if (entity.box == null) return;
    final Minecraft mc = Minecraft.getMinecraft();
    if (mc.objectMouseOver.entityHit != entity) return;
    GL11.glPushMatrix();
    GL11.glTranslated(x, y, z);
    AxisAlignedBB offBox = entity.box.offset(-entity.posX, -entity.posY, -entity.posZ);
    RenderGlobal.drawSelectionBoundingBox(offBox);
    GlStateManager.disableTexture2D();
    int c = 0xB0;
    GL11.glLineWidth(4);
    RenderGlobal.drawOutlinedBoundingBox(offBox, c, c, c, 0xFF);
    GlStateManager.enableTexture2D();
    GL11.glPopMatrix();
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号