Interface NativeItem

Class representing item used to set it's properties.

interface NativeItem {
    addRepairItem(id: number): void;
    addRepairItems(id: number[]): void;
    setAllowedInOffhand(allowed: boolean): void;
    setArmorDamageable(damageable: boolean): void;
    setCreativeCategory(category: number): void;
    setEnchantability(enchant: number, value: number): void;
    setEnchantType(type: number): void;
    setEnchantType(enchant: number, value: number): void;
    setGlint(glint: boolean): void;
    setHandEquipped(equipped: boolean): void;
    setLiquidClip(clip: boolean): void;
    setMaxDamage(maxDamage: number): void;
    setMaxStackSize(maxStack: number): void;
    setMaxUseDuration(duration: number): void;
    setProperties(props: string): void;
    setStackedByData(stacked: boolean): void;
    setUseAnimation(animation: number): void;
}

Methods

  • Parameters

    • id: number

    Returns void

  • Parameters

    • id: number[]

    Returns void

  • Parameters

    • allowed: boolean

    Returns void

  • Parameters

    • damageable: boolean

    Returns void

  • Parameters

    • category: number

    Returns void

  • Parameters

    • enchant: number
    • value: number

    Returns void

  • Parameters

    • type: number

    Returns void

  • Parameters

    • enchant: number
    • value: number

    Returns void

  • Parameters

    • glint: boolean

    Returns void

  • Parameters

    • equipped: boolean

    Returns void

  • Parameters

    • clip: boolean

    Returns void

  • Parameters

    • maxDamage: number

    Returns void

  • Parameters

    • maxStack: number

    Returns void

  • Parameters

    • duration: number

    Returns void

  • Parameters

    • props: string

    Returns void

  • Parameters

    • stacked: boolean

    Returns void

  • Parameters

    • animation: number

    Returns void

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.