Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IItem

Hierarchy

Implemented by

Index

Properties

Optional containedWithin

containedWithin: IContainer

Optional decay

decay: number

Optional disassembly

disassembly: IItemArray

Optional equippedPid

equippedPid: number

id

id: number

Optional legendary

legendary: IItemLegendary

Optional maxDur

maxDur: number

Optional minDur

minDur: number

Optional order

order: number

Optional quality

quality: ItemQuality

Optional quickSlot

quickSlot: number

Optional renamed

renamed: string

Optional tatteredMap

tatteredMap: TatteredMap

type

type: ItemType

weight

weight: number

Methods

acquireNotify

  • acquireNotify(player: IPlayer): void
  • Parameters

    Returns void

changeInto

  • Parameters

    Returns void

damage

  • damage(modifier?: number): void
  • Parameters

    • Optional modifier: number

    Returns void

description

dropInLava

  • dropInLava(player: IPlayer, x?: number, y?: number): void
  • Parameters

    • player: IPlayer
    • Optional x: number
    • Optional y: number

    Returns void

dropInWater

  • dropInWater(player: IPlayer, x?: number, y?: number): void
  • Parameters

    • player: IPlayer
    • Optional x: number
    • Optional y: number

    Returns void

getDecayMax

  • getDecayMax(): number
  • Returns number

getDisassemblyWeight

  • getDisassemblyWeight(): number
  • Returns number

getEquipSlot

  • Returns EquipType | undefined

getLocation

  • getLocation(): IPointZ | undefined
  • Returns IPointZ | undefined

getTotalWeight

  • getTotalWeight(): number
  • Returns number

initializeMap

  • initializeMap(): void
  • Returns void

isDamaged

  • isDamaged(): boolean
  • Returns boolean

isDecayed

  • isDecayed(): boolean
  • Returns boolean

isEquipped

  • isEquipped(): boolean
  • Returns boolean

placeOnTile

  • placeOnTile(x: number, y: number, z: number, force: boolean): void
  • Parameters

    • x: number
    • y: number
    • z: number
    • force: boolean

    Returns void

returns

  • returns(): void
  • Returns void

setQuality

  • Parameters

    Returns void

spawnCreatureOnItem

  • spawnCreatureOnItem(creatureType: CreatureType | undefined): number | undefined
  • Parameters

    Returns number | undefined

spawnOnBreak

  • spawnOnBreak(): number | undefined
  • Returns number | undefined

spawnOnDecay

  • spawnOnDecay(): number | undefined
  • Returns number | undefined

verifyAndFixItem

  • verifyAndFixItem(): void
  • Returns void

Generated using TypeDoc