Bedrock Energistics Core
    Preparing search index...

    Class MachineNetworkBeta

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

    Index
    id: number

    Unique ID for this network.

    ioType: Readonly<StorageTypeData>

    The I/O type of this network.

    • Beta

      Get the statistics from the latest network allocation.

      Returns Promise<NetworkStorageTypeData>

      Statistics about this network's storage type before and after the latest distribution.

      Contains statistics about each storage type's availability on the network before and after distribution, as of the latest network allocation. This is equivalent to the data passed to the onNetworkAllocationCompleted machine event.

      Throws a PublicError of type PublicErrorType.InvalidState if this package has not been initialized (see init).

    • Beta

      Queue sending a storage type over this machine network.

      Parameters

      • blockLocation: DimensionLocation

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

      • 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.

      Throws a PublicError of type PublicErrorType.InvalidState if this package has not been initialized (see init).