Flattened hieracly, extendable in declarations.

interface Item<T> {
    Block?: Block;
    Count: number;
    Damage: number;
    Name: string;
    Slot?: number;
    tag?: T;
    WasPickedUp: boolean;
}

Type Parameters

Hierarchy (view full)

Properties

Block?: Block
Count: number

Amount of item in slot.

Damage: number

Dealed damage, when it comes to Item.getMaxDamage item will be broken.

0 // not damaged at all
Name: string

Typed identifier, such as "minecraft:stick".

Slot?: number

Indexed slot, required in containers with more than one slots.

tag?: T

Additional data, such as nametags, enchantments, etc.

WasPickedUp: boolean

Picked up by entity, denies despawn it naturally.

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