Java 类net.minecraft.client.gui.spectator.categories.SpectatorDetails 实例源码

项目:DecompiledMinecraft    文件:GuiSpectator.java   
public void renderTooltip(ScaledResolution p_175264_1_, float p_175264_2_)
{
    if (this.field_175271_i != null)
    {
        float f = this.func_175265_c();

        if (f <= 0.0F)
        {
            this.field_175271_i.func_178641_d();
        }
        else
        {
            int i = p_175264_1_.getScaledWidth() / 2;
            float f1 = this.zLevel;
            this.zLevel = -90.0F;
            float f2 = (float)p_175264_1_.getScaledHeight() - 22.0F * f;
            SpectatorDetails spectatordetails = this.field_175271_i.func_178646_f();
            this.func_175258_a(p_175264_1_, f, i, f2, spectatordetails);
            this.zLevel = f1;
        }
    }
}
项目:DecompiledMinecraft    文件:GuiSpectator.java   
protected void func_175258_a(ScaledResolution p_175258_1_, float p_175258_2_, int p_175258_3_, float p_175258_4_, SpectatorDetails p_175258_5_)
{
    GlStateManager.enableRescaleNormal();
    GlStateManager.enableBlend();
    GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0);
    GlStateManager.color(1.0F, 1.0F, 1.0F, p_175258_2_);
    this.field_175268_g.getTextureManager().bindTexture(field_175267_f);
    this.drawTexturedModalRect((float)(p_175258_3_ - 91), p_175258_4_, 0, 0, 182, 22);

    if (p_175258_5_.func_178681_b() >= 0)
    {
        this.drawTexturedModalRect((float)(p_175258_3_ - 91 - 1 + p_175258_5_.func_178681_b() * 20), p_175258_4_ - 1.0F, 0, 22, 24, 22);
    }

    RenderHelper.enableGUIStandardItemLighting();

    for (int i = 0; i < 9; ++i)
    {
        this.func_175266_a(i, p_175258_1_.getScaledWidth() / 2 - 90 + i * 20 + 2, p_175258_4_ + 3.0F, p_175258_2_, p_175258_5_.func_178680_a(i));
    }

    RenderHelper.disableStandardItemLighting();
    GlStateManager.disableRescaleNormal();
    GlStateManager.disableBlend();
}
项目:BaseClient    文件:GuiSpectator.java   
public void renderTooltip(ScaledResolution p_175264_1_, float p_175264_2_)
{
    if (this.field_175271_i != null)
    {
        float f = this.func_175265_c();

        if (f <= 0.0F)
        {
            this.field_175271_i.func_178641_d();
        }
        else
        {
            int i = p_175264_1_.getScaledWidth() / 2;
            float f1 = this.zLevel;
            this.zLevel = -90.0F;
            float f2 = (float)p_175264_1_.getScaledHeight() - 22.0F * f;
            SpectatorDetails spectatordetails = this.field_175271_i.func_178646_f();
            this.func_175258_a(p_175264_1_, f, i, f2, spectatordetails);
            this.zLevel = f1;
        }
    }
}
项目:BaseClient    文件:GuiSpectator.java   
protected void func_175258_a(ScaledResolution p_175258_1_, float p_175258_2_, int p_175258_3_, float p_175258_4_, SpectatorDetails p_175258_5_)
{
    GlStateManager.enableRescaleNormal();
    GlStateManager.enableBlend();
    GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0);
    GlStateManager.color(1.0F, 1.0F, 1.0F, p_175258_2_);
    this.field_175268_g.getTextureManager().bindTexture(field_175267_f);
    this.drawTexturedModalRect((float)(p_175258_3_ - 91), p_175258_4_, 0, 0, 182, 22);

    if (p_175258_5_.func_178681_b() >= 0)
    {
        this.drawTexturedModalRect((float)(p_175258_3_ - 91 - 1 + p_175258_5_.func_178681_b() * 20), p_175258_4_ - 1.0F, 0, 22, 24, 22);
    }

    RenderHelper.enableGUIStandardItemLighting();

    for (int i = 0; i < 9; ++i)
    {
        this.func_175266_a(i, p_175258_1_.getScaledWidth() / 2 - 90 + i * 20 + 2, p_175258_4_ + 3.0F, p_175258_2_, p_175258_5_.func_178680_a(i));
    }

    RenderHelper.disableStandardItemLighting();
    GlStateManager.disableRescaleNormal();
    GlStateManager.disableBlend();
}
项目:BaseClient    文件:GuiSpectator.java   
public void renderTooltip(ScaledResolution p_175264_1_, float p_175264_2_)
{
    if (this.field_175271_i != null)
    {
        float f = this.func_175265_c();

        if (f <= 0.0F)
        {
            this.field_175271_i.func_178641_d();
        }
        else
        {
            int i = p_175264_1_.getScaledWidth() / 2;
            float f1 = this.zLevel;
            this.zLevel = -90.0F;
            float f2 = (float)p_175264_1_.getScaledHeight() - 22.0F * f;
            SpectatorDetails spectatordetails = this.field_175271_i.func_178646_f();
            this.func_175258_a(p_175264_1_, f, i, f2, spectatordetails);
            this.zLevel = f1;
        }
    }
}
项目:BaseClient    文件:GuiSpectator.java   
protected void func_175258_a(ScaledResolution p_175258_1_, float p_175258_2_, int p_175258_3_, float p_175258_4_, SpectatorDetails p_175258_5_)
{
    GlStateManager.enableRescaleNormal();
    GlStateManager.enableBlend();
    GlStateManager.tryBlendFuncSeparate(770, 771, 1, 0);
    GlStateManager.color(1.0F, 1.0F, 1.0F, p_175258_2_);
    this.field_175268_g.getTextureManager().bindTexture(field_175267_f);
    this.drawTexturedModalRect((float)(p_175258_3_ - 91), p_175258_4_, 0, 0, 182, 22);

    if (p_175258_5_.func_178681_b() >= 0)
    {
        this.drawTexturedModalRect((float)(p_175258_3_ - 91 - 1 + p_175258_5_.func_178681_b() * 20), p_175258_4_ - 1.0F, 0, 22, 24, 22);
    }

    RenderHelper.enableGUIStandardItemLighting();

    for (int i = 0; i < 9; ++i)
    {
        this.func_175266_a(i, p_175258_1_.getScaledWidth() / 2 - 90 + i * 20 + 2, p_175258_4_ + 3.0F, p_175258_2_, p_175258_5_.func_178680_a(i));
    }

    RenderHelper.disableStandardItemLighting();
    GlStateManager.disableRescaleNormal();
    GlStateManager.disableBlend();
}
项目:Backmemed    文件:GuiSpectator.java   
public void renderTooltip(ScaledResolution p_175264_1_, float p_175264_2_)
{
    if (this.menu != null)
    {
        float f = this.getHotbarAlpha();

        if (f <= 0.0F)
        {
            this.menu.exit();
        }
        else
        {
            int i = p_175264_1_.getScaledWidth() / 2;
            float f1 = this.zLevel;
            this.zLevel = -90.0F;
            float f2 = (float)p_175264_1_.getScaledHeight() - 22.0F * f;
            SpectatorDetails spectatordetails = this.menu.getCurrentPage();
            this.renderPage(p_175264_1_, f, i, f2, spectatordetails);
            this.zLevel = f1;
        }
    }
}
项目:Backmemed    文件:GuiSpectator.java   
protected void renderPage(ScaledResolution p_175258_1_, float p_175258_2_, int p_175258_3_, float p_175258_4_, SpectatorDetails p_175258_5_)
{
    GlStateManager.enableRescaleNormal();
    GlStateManager.enableBlend();
    GlStateManager.tryBlendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO);
    GlStateManager.color(1.0F, 1.0F, 1.0F, p_175258_2_);
    this.mc.getTextureManager().bindTexture(WIDGETS);
    this.drawTexturedModalRect((float)(p_175258_3_ - 91), p_175258_4_, 0, 0, 182, 22);

    if (p_175258_5_.getSelectedSlot() >= 0)
    {
        this.drawTexturedModalRect((float)(p_175258_3_ - 91 - 1 + p_175258_5_.getSelectedSlot() * 20), p_175258_4_ - 1.0F, 0, 22, 24, 22);
    }

    RenderHelper.enableGUIStandardItemLighting();

    for (int i = 0; i < 9; ++i)
    {
        this.renderSlot(i, p_175258_1_.getScaledWidth() / 2 - 90 + i * 20 + 2, p_175258_4_ + 3.0F, p_175258_2_, p_175258_5_.getObject(i));
    }

    RenderHelper.disableStandardItemLighting();
    GlStateManager.disableRescaleNormal();
    GlStateManager.disableBlend();
}
项目:CustomWorldGen    文件:GuiSpectator.java   
public void renderTooltip(ScaledResolution p_175264_1_, float p_175264_2_)
{
    if (this.menu != null)
    {
        float f = this.getHotbarAlpha();

        if (f <= 0.0F)
        {
            this.menu.exit();
        }
        else
        {
            int i = p_175264_1_.getScaledWidth() / 2;
            float f1 = this.zLevel;
            this.zLevel = -90.0F;
            float f2 = (float)p_175264_1_.getScaledHeight() - 22.0F * f;
            SpectatorDetails spectatordetails = this.menu.getCurrentPage();
            this.renderPage(p_175264_1_, f, i, f2, spectatordetails);
            this.zLevel = f1;
        }
    }
}
项目:CustomWorldGen    文件:GuiSpectator.java   
protected void renderPage(ScaledResolution p_175258_1_, float p_175258_2_, int p_175258_3_, float p_175258_4_, SpectatorDetails p_175258_5_)
{
    GlStateManager.enableRescaleNormal();
    GlStateManager.enableBlend();
    GlStateManager.tryBlendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO);
    GlStateManager.color(1.0F, 1.0F, 1.0F, p_175258_2_);
    this.mc.getTextureManager().bindTexture(WIDGETS);
    this.drawTexturedModalRect((float)(p_175258_3_ - 91), p_175258_4_, 0, 0, 182, 22);

    if (p_175258_5_.getSelectedSlot() >= 0)
    {
        this.drawTexturedModalRect((float)(p_175258_3_ - 91 - 1 + p_175258_5_.getSelectedSlot() * 20), p_175258_4_ - 1.0F, 0, 22, 24, 22);
    }

    RenderHelper.enableGUIStandardItemLighting();

    for (int i = 0; i < 9; ++i)
    {
        this.renderSlot(i, p_175258_1_.getScaledWidth() / 2 - 90 + i * 20 + 2, p_175258_4_ + 3.0F, p_175258_2_, p_175258_5_.getObject(i));
    }

    RenderHelper.disableStandardItemLighting();
    GlStateManager.disableRescaleNormal();
    GlStateManager.disableBlend();
}
项目:ExpandedRailsMod    文件:GuiSpectator.java   
public void renderTooltip(ScaledResolution p_175264_1_, float p_175264_2_)
{
    if (this.menu != null)
    {
        float f = this.getHotbarAlpha();

        if (f <= 0.0F)
        {
            this.menu.exit();
        }
        else
        {
            int i = p_175264_1_.getScaledWidth() / 2;
            float f1 = this.zLevel;
            this.zLevel = -90.0F;
            float f2 = (float)p_175264_1_.getScaledHeight() - 22.0F * f;
            SpectatorDetails spectatordetails = this.menu.getCurrentPage();
            this.renderPage(p_175264_1_, f, i, f2, spectatordetails);
            this.zLevel = f1;
        }
    }
}
项目:ExpandedRailsMod    文件:GuiSpectator.java   
protected void renderPage(ScaledResolution p_175258_1_, float p_175258_2_, int p_175258_3_, float p_175258_4_, SpectatorDetails p_175258_5_)
{
    GlStateManager.enableRescaleNormal();
    GlStateManager.enableBlend();
    GlStateManager.tryBlendFuncSeparate(GlStateManager.SourceFactor.SRC_ALPHA, GlStateManager.DestFactor.ONE_MINUS_SRC_ALPHA, GlStateManager.SourceFactor.ONE, GlStateManager.DestFactor.ZERO);
    GlStateManager.color(1.0F, 1.0F, 1.0F, p_175258_2_);
    this.mc.getTextureManager().bindTexture(WIDGETS);
    this.drawTexturedModalRect((float)(p_175258_3_ - 91), p_175258_4_, 0, 0, 182, 22);

    if (p_175258_5_.getSelectedSlot() >= 0)
    {
        this.drawTexturedModalRect((float)(p_175258_3_ - 91 - 1 + p_175258_5_.getSelectedSlot() * 20), p_175258_4_ - 1.0F, 0, 22, 24, 22);
    }

    RenderHelper.enableGUIStandardItemLighting();

    for (int i = 0; i < 9; ++i)
    {
        this.renderSlot(i, p_175258_1_.getScaledWidth() / 2 - 90 + i * 20 + 2, p_175258_4_ + 3.0F, p_175258_2_, p_175258_5_.getObject(i));
    }

    RenderHelper.disableStandardItemLighting();
    GlStateManager.disableRescaleNormal();
    GlStateManager.disableBlend();
}
项目:DecompiledMinecraft    文件:SpectatorMenu.java   
public SpectatorDetails func_178646_f()
{
    return new SpectatorDetails(this.field_178659_h, this.func_178642_a(), this.field_178660_i);
}
项目:BaseClient    文件:SpectatorMenu.java   
public SpectatorDetails func_178646_f()
{
    return new SpectatorDetails(this.field_178659_h, this.func_178642_a(), this.field_178660_i);
}
项目:BaseClient    文件:SpectatorMenu.java   
public SpectatorDetails func_178646_f()
{
    return new SpectatorDetails(this.field_178659_h, this.func_178642_a(), this.field_178660_i);
}
项目:Backmemed    文件:SpectatorMenu.java   
public SpectatorDetails getCurrentPage()
{
    return new SpectatorDetails(this.category, this.getItems(), this.selectedSlot);
}
项目:CustomWorldGen    文件:SpectatorMenu.java   
public SpectatorDetails getCurrentPage()
{
    return new SpectatorDetails(this.category, this.getItems(), this.selectedSlot);
}
项目:ExpandedRailsMod    文件:SpectatorMenu.java   
public SpectatorDetails getCurrentPage()
{
    return new SpectatorDetails(this.category, this.getItems(), this.selectedSlot);
}