Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ClickFunction

Callable

  • Function used to define how the block will behave when the player clicks on it

    Parameters

    • coords: ItemUseCoordinates

      set of all coordinate values that can be useful to write custom logics on click

    • item: ItemInstance

      item that was in the player's hand when he touched the block

    • block: Tile

      block that was touched

    • player: number

      unique id of the player entity

    Returns void

Generated using TypeDoc