Bedrock Energistics Core
    Preparing search index...

    Function getMachineSlotItem

    • Beta

      Gets an item from a machine inventory.

      Parameters

      • loc: DimensionLocation

        The location of the machine.

      • slotId: number

        The number ID of the slot as defined when the machine was registered (see UiItemSlotElementDefinition).

      Returns Promise<null | MachineItemStack>

      The MachineItemStack or null if there is no item in the specified slot.