Companion

object Companion

Functions

Link copied to clipboard
fun isCorrectLevel(blockLevel: Double?, toolLevel: Double?): Boolean
fun isCorrectLevel(block: Block, tool: ItemStack?): Boolean
fun isCorrectLevel(blockTier: ToolTier?, toolTier: ToolTier?): Boolean
Link copied to clipboard
fun ofBlock(block: Block): ToolTier

Returns the ToolTier of the given Block. This method works for both vanilla and Nova blocks.

Link copied to clipboard
fun ofItem(item: ItemStack?): ToolTier?

Returns the ToolTier of the given ItemStack. This method works for both vanilla and Nova items. If the provided ItemStack is not a tool, null will be returned.