本文整理匯總了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);
}
示例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);
}
示例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);
}
}
示例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);
}
示例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));
}
示例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();
}