SerenityJS
    Preparing search index...

    Class EntityItemStackTrait

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    birthTick: bigint

    The birth tick of the item.

    entity: Entity

    The entity that this trait is attached to.

    identifier: string = ...

    The identifier of the trait.

    isMerging: boolean = false

    The merging state of the item.

    itemStack: ItemStack

    The item stack of the component.

    lifeSpan: number = 6000

    The lifespan of the item in ticks.

    mergingEntity: null | Entity = null
    pickupTick: bigint = -1n

    The pickup tick of the item.

    target: null | Player = null

    The target player of the item.

    components: string[] = []

    The entity component identifiers that this trait is compatible with by default. If empty, the trait will not be initialized by any component.

    identifier: "itemstack"

    The identifier of the trait.

    types: EntityIdentifier[] = []

    The entity type identifiers that this trait is compatible with by default.

    Accessors

    Methods