Interface ContainerHost

All Known Implementing Classes:
RuntimeUiService

@Internal public interface ContainerHost
Host for exactly one module copy, paired with the UiOwner passed to ContainerRuntime#create. Never look up another host by module name: same-name module copies may coexist. Internal.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Contents or state of container changed: redraw every session that shows it before the next tick ends.
    returnTo(UUID contributor, List<org.bukkit.inventory.ItemStack> items)
    Returns items to a contributor through UiService#deliver semantics (offline: all undelivered).
    The scheduler the runtime uses (tests: the RecordingScheduler wrapper).
    void
    warn(LogRecord record)
    Logs record (WARNING or higher, message already naming the owner) through the runtime's logger.
  • Method Details

    • returnTo

      CompletionStage<Delivery> returnTo(UUID contributor, List<org.bukkit.inventory.ItemStack> items)
      Returns items to a contributor through UiService#deliver semantics (offline: all undelivered).
    • changed

      void changed(SlotContainer container)
      Contents or state of container changed: redraw every session that shows it before the next tick ends.
    • warn

      void warn(LogRecord record)
      Logs record (WARNING or higher, message already naming the owner) through the runtime's logger.
    • scheduler

      Scheduler scheduler()
      The scheduler the runtime uses (tests: the RecordingScheduler wrapper).