Class GlowFurnace

All Implemented Interfaces:
com.destroystokyo.paper.loottable.LootableBlockInventory, com.destroystokyo.paper.loottable.LootableInventory, org.bukkit.block.BlockState, org.bukkit.block.Container, org.bukkit.block.Furnace, org.bukkit.block.Lockable, org.bukkit.block.TileState, org.bukkit.inventory.BlockInventoryHolder, org.bukkit.inventory.InventoryHolder, org.bukkit.loot.Lootable, org.bukkit.metadata.Metadatable, org.bukkit.Nameable, org.bukkit.persistence.PersistentDataHolder

public class GlowFurnace extends GlowContainer implements org.bukkit.block.Furnace
  • Constructor Details

    • GlowFurnace

      public GlowFurnace(GlowBlock block)
      /** Creates an instance for the given block.
      Parameters:
      block - the furnace block
    • GlowFurnace

      public GlowFurnace(GlowBlock block, short burnTime, short cookTime)
      Creates an instance for the given block.
      Parameters:
      block - the furnace block
      burnTime - the number of ticks before this furnace must consume more fuel, or 0 if not burning
      cookTime - the number of ticks the current item has been cooking
  • Method Details

    • getCookTimeTotal

      public int getCookTimeTotal()
      Specified by:
      getCookTimeTotal in interface org.bukkit.block.Furnace
    • setCookTimeTotal

      public void setCookTimeTotal(int cookTimeTotal)
      Specified by:
      setCookTimeTotal in interface org.bukkit.block.Furnace
    • getRecipesUsed

      @NotNull public @NotNull Map<org.bukkit.inventory.CookingRecipe<?>,Integer> getRecipesUsed()
      Specified by:
      getRecipesUsed in interface org.bukkit.block.Furnace
    • getCookSpeedMultiplier

      public double getCookSpeedMultiplier()
      Specified by:
      getCookSpeedMultiplier in interface org.bukkit.block.Furnace
    • setCookSpeedMultiplier

      public void setCookSpeedMultiplier(double multiplier)
      Specified by:
      setCookSpeedMultiplier in interface org.bukkit.block.Furnace
    • getRecipeUsedCount

      public int getRecipeUsedCount(@NotNull @NotNull org.bukkit.NamespacedKey furnaceRecipe)
      Specified by:
      getRecipeUsedCount in interface org.bukkit.block.Furnace
    • hasRecipeUsedCount

      public boolean hasRecipeUsedCount(@NotNull @NotNull org.bukkit.NamespacedKey furnaceRecipe)
      Specified by:
      hasRecipeUsedCount in interface org.bukkit.block.Furnace
    • setRecipeUsedCount

      public void setRecipeUsedCount(@NotNull @NotNull org.bukkit.inventory.CookingRecipe<?> furnaceRecipe, int count)
      Specified by:
      setRecipeUsedCount in interface org.bukkit.block.Furnace
    • setRecipesUsed

      public void setRecipesUsed(@NotNull @NotNull Map<org.bukkit.inventory.CookingRecipe<?>,Integer> recipesUsed)
      Specified by:
      setRecipesUsed in interface org.bukkit.block.Furnace
    • getInventory

      public org.bukkit.inventory.FurnaceInventory getInventory()
      Specified by:
      getInventory in interface org.bukkit.block.Container
      Specified by:
      getInventory in interface org.bukkit.block.Furnace
      Specified by:
      getInventory in interface org.bukkit.inventory.InventoryHolder
      Overrides:
      getInventory in class GlowContainer
    • update

      public boolean update(boolean force, boolean applyPhysics)
      Specified by:
      update in interface org.bukkit.block.BlockState
      Overrides:
      update in class GlowBlockState
    • getSnapshotInventory

      public org.bukkit.inventory.FurnaceInventory getSnapshotInventory()
      Specified by:
      getSnapshotInventory in interface org.bukkit.block.Container
      Specified by:
      getSnapshotInventory in interface org.bukkit.block.Furnace
      Overrides:
      getSnapshotInventory in class GlowContainer
    • getBurnTime

      public short getBurnTime()
      Specified by:
      getBurnTime in interface org.bukkit.block.Furnace
    • setBurnTime

      public void setBurnTime(short burnTime)
      Specified by:
      setBurnTime in interface org.bukkit.block.Furnace
    • getCookTime

      public short getCookTime()
      Specified by:
      getCookTime in interface org.bukkit.block.Furnace
    • setCookTime

      public void setCookTime(short cookTime)
      Specified by:
      setCookTime in interface org.bukkit.block.Furnace