Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • YItem

Index

Constructors

constructor

Methods

Static dropFromInventory

  • Drop the selected item from inventory.

    Parameters

    Returns YEntity

Static getMovementBonus

  • Returns current bonus movement speed the target item provides.

    Parameters

    Returns number

Static getPrice

  • getPrice(target: YEntity): number
  • Returns the price of target item.

    Parameters

    Returns number

Static getStackCount

  • getStackCount(target: YEntity): number
  • Retruns stack size (item count) of target entity.

    Parameters

    Returns number

Static is

  • Returns whether the target entity is an item.

    Parameters

    Returns boolean

Static isPickable

  • isPickable(target: YEntity): boolean
  • Returns whenever selected item can be picked up.

    Parameters

    Returns boolean

Static isTradeable

  • isTradeable(target: YEntity): boolean
  • Return whenever target item can be traded.

    Parameters

    Returns boolean

Static moveToInventory

  • Move selected item to target container / inventory.

    Parameters

    Returns void

Static setMovementBonus

  • Allows to set the bonus movement speed the target item provides.

    Parameters

    Returns void

Static setPickable

  • setPickable(target: YEntity, value: boolean): void
  • Allows to set whenever selected item can be picked up.

    Parameters

    Returns void

Static setPrice

  • setPrice(target: YEntity, value: number): void
  • Allows to set the price of target item.

    Parameters

    Returns void

Static setStackCount

  • setStackCount(target: YEntity, value: number): void
  • Allows to set stack size (item count) of target entity.

    Parameters

    Returns void

Static setTradeable

  • setTradeable(target: YEntity, value: boolean): void
  • Allows to set whenever target item can be traded.

    Parameters

    Returns void

Generated using TypeDoc