Bedrock Energistics Core
    Preparing search index...

    Class MachineNetworkBeta

    A network of machines with a certain I/O type.

    Index

    Properties

    id: number

    Unique ID for this network.

    Methods

    • Beta

      Tests if a block is inside of this network.

      Parameters

      • block: Block

      Returns Promise<boolean>

    • Beta

      Tests if a machine matching the arguments is inside of this network.

      Parameters

      Returns Promise<boolean>

    • Beta

      Queue sending a storage type over this machine network.

      Parameters

      • blockLocation: DimensionLocation

        The location of the machine that is sending the storage type.

      • type: string

        The storage type to send.

      • amount: number

        The amount to send. Must be greater than zero.

      Returns void

      • Note: in most cases, prefer generate over this function.
      • Automatically sets the machine's reserve storage to the amount that was not received.
    • Beta

      Establish a new network at location.

      Parameters

      • ioTypeId: string
      • location: DimensionLocation

      Returns Promise<undefined | MachineNetwork>

    • Beta

      Get the MachineNetwork that contains a machine that matches the arguments.

      Parameters

      • ioTypeId: string

        the I/O type of the network.

      • location: DimensionLocation

        The location of the machine.

      • connectionType: NetworkConnectionType

        The connection type of the machine.

      Returns Promise<undefined | MachineNetwork>

    • Beta

      Get the MachineNetwork that contains a block.

      Parameters

      • ioTypeId: string
      • block: Block

      Returns Promise<undefined | MachineNetwork>

    • Beta

      Update all MachineNetworks adjacent to a location.

      Parameters

      • location: DimensionLocation

      Returns Promise<void>

    • Beta

      Update all MachineNetworks that contain a machine that matches the arguments.

      Parameters

      Returns Promise<void>

    • Beta

      Update all MachineNetworks that contain a block.

      Parameters

      • block: Block

      Returns Promise<void>