Options
All
  • Public
  • Public/Protected
  • All
Menu

Object extending java.util.ArrayList and representing list of randomly chosen items from a loot table, which you can modify in OnDropCallback, also having access to KEX.LootTableContext object with all information about entity death or chest opening.

since

1.2

Hierarchy

Index

Properties

modCount: number

Methods

  • add(param0: number, param1: any): void
  • add(param0: any): boolean
  • Parameters

    • param0: number
    • param1: any

    Returns void

  • Parameters

    • param0: any

    Returns boolean

  • addItem(id: number, count: number, data: number, extra?: ItemExtraData): void
  • Adds new item to the list by given numeric ID, count, data and additionally extra. It's recommended to use exactly this method instead of add method from java.util.ArrayList when you're in JS, because the ArrayList actually consists of ItemStack Java objects, not the ItemInstances as JS-objects.

    since

    1.2

    Parameters

    Returns void

  • clear(): void
  • clone(): any
  • contains(param0: any): boolean
  • Parameters

    • param0: any

    Returns boolean

  • ensureCapacity(param0: number): void
  • Parameters

    • param0: number

    Returns void

  • equals(param0: any): boolean
  • finalize(): void
  • forEach(param0: any): void
  • Parameters

    • param0: any

    Returns void

  • get(param0: number): any
  • Parameters

    • param0: number

    Returns any

  • getPointer(): number
  • Returns number

    pointer to the native object wrapped by the following native interface object, represented by a signed 64-bit integer

  • hashCode(): number
  • indexOf(param0: any): number
  • Parameters

    • param0: any

    Returns number

  • isEmpty(): boolean
  • lastIndexOf(param0: any): number
  • Parameters

    • param0: any

    Returns number

  • markChanged(): void
  • This method needs to be called when you call something except addItem and remove, Otherwise your modifications will not affect the loot table's result. This class will be improved in future so you won't have to use it.

    since

    1.2

    Returns void

  • notify(): void
  • notifyAll(): void
  • remove(param0: number): any
  • remove(param0: any): boolean
  • Parameters

    • param0: number

    Returns any

  • Parameters

    • param0: any

    Returns boolean

  • removeIf(param0: any): boolean
  • Parameters

    • param0: any

    Returns boolean

  • removeRange(param0: number, param1: number): void
  • Parameters

    • param0: number
    • param1: number

    Returns void

  • replaceAll(param0: any): void
  • Parameters

    • param0: any

    Returns void

  • set(param0: number, param1: any): any
  • Parameters

    • param0: number
    • param1: any

    Returns any

  • size(): number
  • subList(param0: number, param1: number): List<any>
  • Parameters

    • param0: number
    • param1: number

    Returns List<any>

  • toArray(): Array<any>
  • toArray(param0: Array<any>): Array<any>
  • Returns Array<any>

  • Parameters

    • param0: Array<any>

    Returns Array<any>

  • toString(): string
  • trimToSize(): void
  • wait(): void
  • wait(param0: number): void
  • wait(param0: number, param1: number): void

Generated using TypeDoc