Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Item

Hierarchy

  • Item

Implements

Index

Constructors

constructor

  • Parameters

    • Optional itemType: ItemType | undefined
    • Default value quality: ItemQuality = ItemQuality.Random

    Returns Item

Properties

containedItems

containedItems: IItemArray

containedWithin

containedWithin: IContainer

decay

decay: number

disassembly

disassembly: IItemArray

equippedPid

equippedPid: EquipType

id

id: number

legendary

legendary: IItemLegendary

maxDur

maxDur: number

minDur

minDur: number

order

order: number

quality

quality: ItemQuality

quickSlot

quickSlot: number

renamed

renamed: string

tatteredMap

tatteredMap: TatteredMap

type

type: ItemType

weight

weight: number

weightCapacity

weightCapacity: number

Methods

acquireNotify

  • acquireNotify(player: IPlayer): void

changeInto

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

getEquipSlot

getLocation

  • getLocation(): IPointZ | undefined

getSerializationProperties

  • getSerializationProperties(_: string): string[]

getTotalWeight

  • getTotalWeight(): number

initializeMap

  • initializeMap(): void

isDamaged

  • isDamaged(): boolean
  • Returns boolean

isDecayed

  • isDecayed(): boolean
  • Returns boolean

isEquipped

  • isEquipped(): boolean
  • Returns boolean

onUnserialized

  • onUnserialized(): void

placeOnTile

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

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

    Returns boolean

returns

  • returns(): boolean
  • Returns boolean

setQuality

spawnCreatureOnItem

spawnOnBreak

spawnOnDecay

verifyAndFixItem

  • verifyAndFixItem(): void

Generated using TypeDoc