Java 类net.minecraft.util.FrameTimer 实例源码

项目:DecompiledMinecraft    文件:GuiOverlayDebug.java   
private void func_181554_e()
{
    GlStateManager.disableDepth();
    FrameTimer frametimer = this.mc.func_181539_aj();
    int i = frametimer.func_181749_a();
    int j = frametimer.func_181750_b();
    long[] along = frametimer.func_181746_c();
    ScaledResolution scaledresolution = new ScaledResolution(this.mc);
    int k = i;
    int l = 0;
    drawRect(0, scaledresolution.getScaledHeight() - 60, 240, scaledresolution.getScaledHeight(), -1873784752);

    while (k != j)
    {
        int i1 = frametimer.func_181748_a(along[k], 30);
        int j1 = this.func_181552_c(MathHelper.clamp_int(i1, 0, 60), 0, 30, 60);
        this.drawVerticalLine(l, scaledresolution.getScaledHeight(), scaledresolution.getScaledHeight() - i1, j1);
        ++l;
        k = frametimer.func_181751_b(k + 1);
    }

    drawRect(1, scaledresolution.getScaledHeight() - 30 + 1, 14, scaledresolution.getScaledHeight() - 30 + 10, -1873784752);
    this.fontRenderer.drawString("60", 2, scaledresolution.getScaledHeight() - 30 + 2, 14737632);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 30, -1);
    drawRect(1, scaledresolution.getScaledHeight() - 60 + 1, 14, scaledresolution.getScaledHeight() - 60 + 10, -1873784752);
    this.fontRenderer.drawString("30", 2, scaledresolution.getScaledHeight() - 60 + 2, 14737632);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60, -1);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 1, -1);
    this.drawVerticalLine(0, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1);
    this.drawVerticalLine(239, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1);

    if (this.mc.gameSettings.limitFramerate <= 120)
    {
        this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60 + this.mc.gameSettings.limitFramerate / 2, -16711681);
    }

    GlStateManager.enableDepth();
}
项目:BaseClient    文件:GuiOverlayDebug.java   
private void func_181554_e()
{
    GlStateManager.disableDepth();
    FrameTimer frametimer = this.mc.func_181539_aj();
    int i = frametimer.func_181749_a();
    int j = frametimer.func_181750_b();
    long[] along = frametimer.func_181746_c();
    ScaledResolution scaledresolution = new ScaledResolution(this.mc);
    int k = i;
    int l = 0;
    drawRect(0, scaledresolution.getScaledHeight() - 60, 240, scaledresolution.getScaledHeight(), -1873784752);

    while (k != j)
    {
        int i1 = frametimer.func_181748_a(along[k], 30);
        int j1 = this.func_181552_c(MathHelper.clamp_int(i1, 0, 60), 0, 30, 60);
        this.drawVerticalLine(l, scaledresolution.getScaledHeight(), scaledresolution.getScaledHeight() - i1, j1);
        ++l;
        k = frametimer.func_181751_b(k + 1);
    }

    drawRect(1, scaledresolution.getScaledHeight() - 30 + 1, 14, scaledresolution.getScaledHeight() - 30 + 10, -1873784752);
    this.fontRenderer.drawString("60", 2, scaledresolution.getScaledHeight() - 30 + 2, 14737632);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 30, -1);
    drawRect(1, scaledresolution.getScaledHeight() - 60 + 1, 14, scaledresolution.getScaledHeight() - 60 + 10, -1873784752);
    this.fontRenderer.drawString("30", 2, scaledresolution.getScaledHeight() - 60 + 2, 14737632);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60, -1);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 1, -1);
    this.drawVerticalLine(0, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1);
    this.drawVerticalLine(239, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1);

    if (this.mc.gameSettings.limitFramerate <= 120)
    {
        this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60 + this.mc.gameSettings.limitFramerate / 2, -16711681);
    }

    GlStateManager.enableDepth();
}
项目:BaseClient    文件:GuiOverlayDebug.java   
private void func_181554_e()
{
    GlStateManager.disableDepth();
    FrameTimer frametimer = this.mc.func_181539_aj();
    int i = frametimer.func_181749_a();
    int j = frametimer.func_181750_b();
    long[] along = frametimer.func_181746_c();
    ScaledResolution scaledresolution = new ScaledResolution(this.mc);
    int k = i;
    int l = 0;
    drawRect(0, scaledresolution.getScaledHeight() - 60, 240, scaledresolution.getScaledHeight(), -1873784752);

    while (k != j)
    {
        int i1 = frametimer.func_181748_a(along[k], 30);
        int j1 = this.func_181552_c(MathHelper.clamp_int(i1, 0, 60), 0, 30, 60);
        this.drawVerticalLine(l, scaledresolution.getScaledHeight(), scaledresolution.getScaledHeight() - i1, j1);
        ++l;
        k = frametimer.func_181751_b(k + 1);
    }

    drawRect(1, scaledresolution.getScaledHeight() - 30 + 1, 14, scaledresolution.getScaledHeight() - 30 + 10, -1873784752);
    this.fontRenderer.drawString("60", 2, scaledresolution.getScaledHeight() - 30 + 2, 14737632);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 30, -1);
    drawRect(1, scaledresolution.getScaledHeight() - 60 + 1, 14, scaledresolution.getScaledHeight() - 60 + 10, -1873784752);
    this.fontRenderer.drawString("30", 2, scaledresolution.getScaledHeight() - 60 + 2, 14737632);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60, -1);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 1, -1);
    this.drawVerticalLine(0, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1);
    this.drawVerticalLine(239, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1);

    if (this.mc.gameSettings.limitFramerate <= 120)
    {
        this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60 + this.mc.gameSettings.limitFramerate / 2, -16711681);
    }

    GlStateManager.enableDepth();
}
项目:Backmemed    文件:GuiOverlayDebug.java   
private void renderLagometer()
{
    GlStateManager.disableDepth();
    FrameTimer frametimer = this.mc.getFrameTimer();
    int i = frametimer.getLastIndex();
    int j = frametimer.getIndex();
    long[] along = frametimer.getFrames();
    ScaledResolution scaledresolution = new ScaledResolution(this.mc);
    int k = i;
    int l = 0;
    drawRect(0, scaledresolution.getScaledHeight() - 60, 240, scaledresolution.getScaledHeight(), -1873784752);

    while (k != j)
    {
        int i1 = frametimer.getLagometerValue(along[k], 30);
        int j1 = this.getFrameColor(MathHelper.clamp(i1, 0, 60), 0, 30, 60);
        this.drawVerticalLine(l, scaledresolution.getScaledHeight(), scaledresolution.getScaledHeight() - i1, j1);
        ++l;
        k = frametimer.parseIndex(k + 1);
    }

    drawRect(1, scaledresolution.getScaledHeight() - 30 + 1, 14, scaledresolution.getScaledHeight() - 30 + 10, -1873784752);
    this.fontRenderer.drawString("60", 2, scaledresolution.getScaledHeight() - 30 + 2, 14737632);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 30, -1);
    drawRect(1, scaledresolution.getScaledHeight() - 60 + 1, 14, scaledresolution.getScaledHeight() - 60 + 10, -1873784752);
    this.fontRenderer.drawString("30", 2, scaledresolution.getScaledHeight() - 60 + 2, 14737632);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60, -1);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 1, -1);
    this.drawVerticalLine(0, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1);
    this.drawVerticalLine(239, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1);

    if (this.mc.gameSettings.limitFramerate <= 120)
    {
        this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60 + this.mc.gameSettings.limitFramerate / 2, -16711681);
    }

    GlStateManager.enableDepth();
}
项目:CustomWorldGen    文件:GuiOverlayDebug.java   
public void renderLagometer()
{
    GlStateManager.disableDepth();
    FrameTimer frametimer = this.mc.getFrameTimer();
    int i = frametimer.getLastIndex();
    int j = frametimer.getIndex();
    long[] along = frametimer.getFrames();
    ScaledResolution scaledresolution = new ScaledResolution(this.mc);
    int k = i;
    int l = 0;
    drawRect(0, scaledresolution.getScaledHeight() - 60, 240, scaledresolution.getScaledHeight(), -1873784752);

    while (k != j)
    {
        int i1 = frametimer.getLagometerValue(along[k], 30);
        int j1 = this.getFrameColor(MathHelper.clamp_int(i1, 0, 60), 0, 30, 60);
        this.drawVerticalLine(l, scaledresolution.getScaledHeight(), scaledresolution.getScaledHeight() - i1, j1);
        ++l;
        k = frametimer.parseIndex(k + 1);
    }

    drawRect(1, scaledresolution.getScaledHeight() - 30 + 1, 14, scaledresolution.getScaledHeight() - 30 + 10, -1873784752);
    this.fontRenderer.drawString("60", 2, scaledresolution.getScaledHeight() - 30 + 2, 14737632);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 30, -1);
    drawRect(1, scaledresolution.getScaledHeight() - 60 + 1, 14, scaledresolution.getScaledHeight() - 60 + 10, -1873784752);
    this.fontRenderer.drawString("30", 2, scaledresolution.getScaledHeight() - 60 + 2, 14737632);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60, -1);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 1, -1);
    this.drawVerticalLine(0, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1);
    this.drawVerticalLine(239, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1);

    if (this.mc.gameSettings.limitFramerate <= 120)
    {
        this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60 + this.mc.gameSettings.limitFramerate / 2, -16711681);
    }

    GlStateManager.enableDepth();
}
项目:ExpandedRailsMod    文件:GuiOverlayDebug.java   
public void renderLagometer()
{
    GlStateManager.disableDepth();
    FrameTimer frametimer = this.mc.getFrameTimer();
    int i = frametimer.getLastIndex();
    int j = frametimer.getIndex();
    long[] along = frametimer.getFrames();
    ScaledResolution scaledresolution = new ScaledResolution(this.mc);
    int k = i;
    int l = 0;
    drawRect(0, scaledresolution.getScaledHeight() - 60, 240, scaledresolution.getScaledHeight(), -1873784752);

    while (k != j)
    {
        int i1 = frametimer.getLagometerValue(along[k], 30);
        int j1 = this.getFrameColor(MathHelper.clamp_int(i1, 0, 60), 0, 30, 60);
        this.drawVerticalLine(l, scaledresolution.getScaledHeight(), scaledresolution.getScaledHeight() - i1, j1);
        ++l;
        k = frametimer.parseIndex(k + 1);
    }

    drawRect(1, scaledresolution.getScaledHeight() - 30 + 1, 14, scaledresolution.getScaledHeight() - 30 + 10, -1873784752);
    this.fontRenderer.drawString("60", 2, scaledresolution.getScaledHeight() - 30 + 2, 14737632);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 30, -1);
    drawRect(1, scaledresolution.getScaledHeight() - 60 + 1, 14, scaledresolution.getScaledHeight() - 60 + 10, -1873784752);
    this.fontRenderer.drawString("30", 2, scaledresolution.getScaledHeight() - 60 + 2, 14737632);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60, -1);
    this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 1, -1);
    this.drawVerticalLine(0, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1);
    this.drawVerticalLine(239, scaledresolution.getScaledHeight() - 60, scaledresolution.getScaledHeight(), -1);

    if (this.mc.gameSettings.limitFramerate <= 120)
    {
        this.drawHorizontalLine(0, 239, scaledresolution.getScaledHeight() - 60 + this.mc.gameSettings.limitFramerate / 2, -16711681);
    }

    GlStateManager.enableDepth();
}
项目:DecompiledMinecraft    文件:Minecraft.java   
public FrameTimer func_181539_aj()
{
    return this.field_181542_y;
}
项目:BaseClient    文件:Minecraft.java   
public FrameTimer func_181539_aj()
{
    return this.field_181542_y;
}
项目:BaseClient    文件:Minecraft.java   
public FrameTimer func_181539_aj() {
    return this.field_181542_y;
}
项目:Zombe-Modpack    文件:Minecraft.java   
/**
 * Return the FrameTimer's instance
 */
public FrameTimer getFrameTimer()
{
    return this.frameTimer;
}
项目:Backmemed    文件:Minecraft.java   
/**
 * Return the FrameTimer's instance
 */
public FrameTimer getFrameTimer()
{
    return this.frameTimer;
}
项目:CustomWorldGen    文件:Minecraft.java   
/**
 * Return the FrameTimer's instance
 */
public FrameTimer getFrameTimer()
{
    return this.frameTimer;
}
项目:ExpandedRailsMod    文件:Minecraft.java   
/**
 * Return the FrameTimer's instance
 */
public FrameTimer getFrameTimer()
{
    return this.frameTimer;
}