Hierarchy

Methods

  • Called when the entity is created in the game Also called for players that "rejoin" the game

    Returns void

  • Returns any

  • Parameters

    • durability: number
    • oldDurability: number

    Returns any

  • Parameters

    • durabilityMax: number
    • oldDurabilityMax: number

    Returns any

  • Called when the human equips an item to a slot

    Parameters

    Returns any

  • Parameters

    Returns any

  • Called when an entity is killed by another entity.

    Parameters

    Returns void

  • Returns any

  • Parameters

    • islandId: `${number},${number}`
    • itemId: number

    Returns any

  • Called before moving. Can be called twice for humans

    Parameters

    • fromTile: default
    • toTile: default
    • isMoving: boolean

      True the second time it's called, right as the entity is about to actually move

    Returns undefined | boolean | void

  • Parameters

    Returns any

  • Returns any

  • Called when the entity is removed from the game

    Returns void

  • Called when the entity is renamed

    Returns void

  • Called when an item is damaged

    Returns

    The amount of damage the item shouldd take or undefined to use the default logic

    Parameters

    • Optional modifier: number

      The damage modifier

    Returns undefined | number | false

  • Parameters

    • isProtected: boolean

    Returns any

  • Called when the human unequip an item from a slot

    Parameters

    Returns any

  • Returns any

Generated using TypeDoc