当前位置: 首页>>代码示例>>Java>>正文


Java TileEntityFurnace.isBurning方法代码示例

本文整理汇总了Java中net.minecraft.tileentity.TileEntityFurnace.isBurning方法的典型用法代码示例。如果您正苦于以下问题:Java TileEntityFurnace.isBurning方法的具体用法?Java TileEntityFurnace.isBurning怎么用?Java TileEntityFurnace.isBurning使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.tileentity.TileEntityFurnace的用法示例。


在下文中一共展示了TileEntityFurnace.isBurning方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: drawGuiContainerBackgroundLayer

import net.minecraft.tileentity.TileEntityFurnace; //导入方法依赖的package包/类
/**
 * Args : renderPartialTicks, mouseX, mouseY
 */
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)
{
    GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
    this.mc.getTextureManager().bindTexture(furnaceGuiTextures);
    int i = (this.width - this.xSize) / 2;
    int j = (this.height - this.ySize) / 2;
    this.drawTexturedModalRect(i, j, 0, 0, this.xSize, this.ySize);

    if (TileEntityFurnace.isBurning(this.tileFurnace))
    {
        int k = this.getBurnLeftScaled(13);
        this.drawTexturedModalRect(i + 56, j + 36 + 12 - k, 176, 12 - k, 14, k + 1);
    }

    int l = this.getCookProgressScaled(24);
    this.drawTexturedModalRect(i + 79, j + 34, 176, 14, l + 1, 16);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:21,代码来源:GuiFurnace.java

示例2: drawGuiContainerBackgroundLayer

import net.minecraft.tileentity.TileEntityFurnace; //导入方法依赖的package包/类
/**
 * Draws the background layer of this container (behind the items).
 */
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY)
{
    GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
    this.mc.getTextureManager().bindTexture(FURNACE_GUI_TEXTURES);
    int i = (this.width - this.xSize) / 2;
    int j = (this.height - this.ySize) / 2;
    this.drawTexturedModalRect(i, j, 0, 0, this.xSize, this.ySize);

    if (TileEntityFurnace.isBurning(this.tileFurnace))
    {
        int k = this.getBurnLeftScaled(13);
        this.drawTexturedModalRect(i + 56, j + 36 + 12 - k, 176, 12 - k, 14, k + 1);
    }

    int l = this.getCookProgressScaled(24);
    this.drawTexturedModalRect(i + 79, j + 34, 176, 14, l + 1, 16);
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:21,代码来源:GuiFurnace.java

示例3: drawGuiContainerBackgroundLayer

import net.minecraft.tileentity.TileEntityFurnace; //导入方法依赖的package包/类
@Override
protected void drawGuiContainerBackgroundLayer(float var1, int mouseX, int mouseY) {
    GL11.glEnable(GL11.GL_BLEND);
    this.mc.getTextureManager().bindTexture(new ResourceLocation("exoticpower", "textures/gui/container/elementgenerator.png"));
    int k = (this.width - this.xSize) / 2;
    int l = (this.height - this.ySize) / 2;
    this.drawTexturedModalRect(k, l, 0, 0, this.xSize, this.ySize);
    int i1;
    if (TileEntityFurnace.isBurning(this.tile)) {
        i1 = this.func_175382_i(13);
        this.drawTexturedModalRect(k + 61, l + 38 + 12 - i1, 176, 12 - i1, 18, i1 + 1);
    }
    i1 = this.tile.energy * 53 / this.tile.capacity;
    this.drawTexturedModalRect(k + 97, (int) l + 18 + 53 - i1, 176, (int) 13 + 53 - i1, 18, (int) i1 + 1);
    if (mouseX > k + 97 && mouseX < k + 114 && mouseY > l + 18 && mouseY < l + 70) {
        drawHoveringText(Arrays.asList(new String[]{this.tile.energy + "/" + this.tile.capacity}), mouseX, mouseY, fontRendererObj);
    }
}
 
开发者ID:InfinityStudio,项目名称:ExoticPower,代码行数:19,代码来源:GuiElementGenerator.java

示例4: drawGuiContainerBackgroundLayer

import net.minecraft.tileentity.TileEntityFurnace; //导入方法依赖的package包/类
/**
 * Args : renderPartialTicks, mouseX, mouseY
 */
protected void drawGuiContainerBackgroundLayer(float partialTicks, int mouseX, int mouseY) {
    GlStateManager.color(1.0F, 1.0F, 1.0F, 1.0F);
    this.mc.getTextureManager().bindTexture(furnaceGuiTextures);
    int x = (this.width - this.xSize) / 2;
    int y = (this.height - this.ySize) / 2;
    this.drawTexturedModalRect(x, y, 0, 0, this.xSize, this.ySize);

    if (TileEntityFurnace.isBurning(this.tileFurnace)) {
        int cookTime = this.getCookTimeScaled(13);
        this.drawTexturedModalRect(x + 45, y + 36 + 12 - cookTime, 176, 12 - cookTime, 14, cookTime + 1);
    }

    int burnTime = this.getBurnTimeScaled(24);
    this.drawTexturedModalRect(x + 79, y + 34, 176, 14, burnTime + 1, 16);
}
 
开发者ID:TEAMModding,项目名称:FutureCraft,代码行数:19,代码来源:GuiAlloyFurnace.java

示例5: copyStateFrom

import net.minecraft.tileentity.TileEntityFurnace; //导入方法依赖的package包/类
public void copyStateFrom(TileEntityFurnace furnace, byte facing)
{
    furnaceCookTime[0] = furnace.getField(2);
    furnaceBurnTime = furnace.getField(0);
    currentItemBurnTime = furnace.getField(1);
    setFacing(facing);
    isActive = furnace.isBurning();
    world.addBlockEvent(pos, MoreFurnaces.blockFurnaces, 2, (byte) (isActive ? 1 : 0));
}
 
开发者ID:cubex2,项目名称:morefurnaces,代码行数:10,代码来源:TileEntityIronFurnace.java

示例6: isBurning

import net.minecraft.tileentity.TileEntityFurnace; //导入方法依赖的package包/类
@ScriptCallable(returnTypes = ReturnType.BOOLEAN, description = "Is the furnace currently burning?")
public boolean isBurning(TileEntityFurnace furnace) {
	return furnace.isBurning();
}
 
开发者ID:OpenMods,项目名称:OpenPeripheral-Integration,代码行数:5,代码来源:AdapterFurnace.java


注:本文中的net.minecraft.tileentity.TileEntityFurnace.isBurning方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。