Interface BlockData

Object used to store all of the ToolAPI block data.

interface BlockData {
    isNative: boolean;
    level: number;
    material: BlockMaterial;
}

Properties

isNative: boolean

Specifies whether the block was added as vanilla item or as a custom block. true, if the block is vanilla, false if the block is custom. Should not generally be changed.

level: number

Digging level of the block. If digging level of tool is higher then block's one, the block is dropped.

material: BlockMaterial

Material data used for this block.

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.