SerenityJS
    Preparing search index...

    Class ItemSpawnEggTrait

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    entityType: null | EntityIdentifier = null

    The entity type that this spawn egg will spawn.

    identifier: string = ...

    The identifier of the trait.

    item: ItemStack

    The item stack that this trait is attached to.

    components: string[] = []

    The item component that this trait is compatible with by default. If null, the trait will not attach to any item stack by default.

    identifier: "spawn_egg"

    The identifier of the trait.

    tag: "minecraft:spawn_egg"

    The item tag that this trait is compatible with by default. If null, the trait will not attach to any item stack by default.

    types: ItemIdentifier[] = []

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

    Methods