Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DropFunction

Function used to determine block drop

Hierarchy

  • DropFunction

Callable

  • __call(blockCoords: ItemUseCoordinates, blockID: number, blockData: number, diggingLevel: number, region: BlockSource): [number, number, number][]
  • Function used to determine block drop

    Parameters

    • blockCoords: ItemUseCoordinates

      coordinates where the block is destroyed and side from where it is destroyed

    • blockID: number

      numeric tile id

    • blockData: number

      block data value

    • diggingLevel: number

      level of the tool the block was digged with

    • region: BlockSource

      BlockSource object

    Returns [number, number, number][]

    block drop, the array of arrays, each containing three values: id, count and data respectively

Generated using TypeDoc