Bedrock Energistics Core
    Preparing search index...

    Class MachineItemStackBeta

    Represents an item stack that may be stored in a machine UI item slot.

    Index

    Constructors

    Properties

    amount: number = 1
    damage: number
    enchantments: Enchantment[]
    lore: string[]
    nameTag?: string
    typeId: string

    Methods

    • Beta

      Tests if all properties of two MachineItemStacks, except 'amount', are the same.

      Parameters

      Returns boolean

      Whether the two MachineItemStacks are similar.

    • Beta

      Converts this MachineItemStack to a Minecraft ItemStack.

      Returns ItemStack

      A Minecraft ItemStack with the same properties as this MachineItemStack.

    • Beta

      Clones this object and sets the amount to the given value.

      Parameters

      • amount: number

        The new amount.

      Returns MachineItemStack

      A new MachineItemStack with the same properties as this one, but with the given amount.s