Interface OtherMachines


@NonExtendable public interface OtherMachines
Reaching other machines by position (MachineContext.machines()), e.g. the members of one multiblock. Only machines that are loaded and owned by the calling thread can be reached.
  • Method Summary

    Modifier and Type
    Method
    Description
    storage(@NotNull WorldPosition machine, @NotNull String storage)
    Full access to a storage of the machine at machine (e.g.
    void
    wake(@NotNull WorldPosition machine)
    Wakes the machine at machine (e.g.
  • Method Details

    • storage

      @NotNull @NotNull Optional<ResourceHandler> storage(@NotNull @NotNull WorldPosition machine, @NotNull @NotNull String storage)
      Full access to a storage of the machine at machine (e.g. a multiblock member reaching the structure's storage, kept by another member).
    • wake

      void wake(@NotNull @NotNull WorldPosition machine)
      Wakes the machine at machine (e.g. a multiblock's anchor when its structure formed).