UNPKG

@tendrock/lib

Version:

A lib under the Tendrock system for Minecraft Bedrock Script API

24 lines (23 loc) 1.46 kB
import { BlockPermutation, ItemStack } from "@minecraft/server"; export declare class ToolUtils { private static ToolTierMap; static getMatchToolTierByBlockDestructibleTag(destructibleTag: string): string[]; static isVanillaTool(item: string | ItemStack, toolTag: string): boolean; static isVanillaAxe(item: string | ItemStack): boolean; static isVanillaPickaxe(item: string | ItemStack): boolean; static isVanillaShovel(item: string | ItemStack): boolean; static isVanillaHoe(item: string | ItemStack): boolean; static isVanillaSword(item: string | ItemStack): boolean; static isTool(item: string | ItemStack, ...toolTags: string[]): boolean; static isAxe(item: string | ItemStack): boolean; static isPickaxe(item: string | ItemStack): boolean; static isShovel(item: string | ItemStack): boolean; static isHoe(item: string | ItemStack): boolean; static isSword(item: string | ItemStack): boolean; static matchTool(permutation: BlockPermutation, tool: ItemStack, ...toolTags: string[]): boolean; static matchPickaxe(permutation: BlockPermutation, tool: ItemStack): boolean; static matchAxe(permutation: BlockPermutation, tool: ItemStack): boolean; static matchShovel(permutation: BlockPermutation, tool: ItemStack): boolean; static matchHoe(permutation: BlockPermutation, tool: ItemStack): boolean; static matchSword(permutation: BlockPermutation, tool: ItemStack): boolean; }