Companion

object Companion

Functions

Link copied to clipboard
fun getBurnTime(itemStack: ItemStack): Int

Gets the burn time of the given MojangStack in ticks, regardless of whether it is a Nova item or not, or 0 if the item is not a fuel item.

fun getBurnTime(material: Material): Int

Gets the burn time of the given Material in ticks, or 0 if the material is not a fuel item.

fun getBurnTime(itemStack: ItemStack): Int

Gets the burn time of the given BukkitStack in ticks, regardless of whether it is a Nova item or not, or 0 if the item is not a fuel item.

Link copied to clipboard
fun isFuel(itemStack: ItemStack): Boolean

Checks if the given MojangStack is a fuel item, regardless of whether it is a Nova item or not.

fun isFuel(material: Material): Boolean

Checks if the given Material is a fuel item.

fun isFuel(itemStack: ItemStack): Boolean

Checks if the given BukkitStack is a fuel item, regardless of whether it is a Nova item or not.