Hierarchy

  • Block

Constructors

  • Parameters

    • __namedParameters: { hardness?: number; id: number; javaName?: string; name: string; parentName?: string }
      • Optional hardness?: number
      • id: number
      • Optional javaName?: string
      • name: string
      • Optional parentName?: string

    Returns Block

Properties

count: number
hardness: number
id: number

The block's numeric block ID.

javaName: string

The block's java-edition namespaced block ID.

meta: number
name: string

The block's namespaced block ID.

nbt: null

Methods

  • Returns boolean

  • Returns boolean

  • Sets if the block can be replaced when place action occurs on it.

    Returns boolean

  • Returns boolean

  • Get the Block's blast resistance.

    Returns number

  • Get the Block's break time.

    Parameters

    Returns number

  • Get the Block's drop(s) from the current item.

    Parameters

    Returns (null | Item | Block)[]

  • Get the Block's drop(s) if the tool is compatible.

    Parameters

    Returns (null | Item | Block)[]

  • Get the Block's flammability.

    Returns number

  • Get the Block's hardness value.

    Returns number

  • Get the Block's numeric id.

    Returns

    The block's numeric ID.

    Returns number

  • Returns number

  • Get the Block's light level emission.

    Returns number

  • Get the Block's meta value.

    Returns number

  • Get the Block's namespaced id.

    Returns string

  • Get the Block's network numeric id.

    Returns number

  • Get the Block's drop(s) if silk touch is used.

    Parameters

    Returns Block[]

  • Get the Block's required item tool tier.

    Returns ItemTieredToolType

  • Get the Block's required tool type.

    Returns BlockToolType[]

  • Returns boolean

  • Check if the block is breakable.

    Returns

    true if the block is breakable otherwise false.

    Returns boolean

  • Parameters

    Returns boolean

  • Returns boolean

  • Check if the block is solid.

    Returns

    true if the block is solid otherwise false.

    Returns boolean

  • Returns boolean

Generated using TypeDoc