Class PaperUiBridge

java.lang.Object
dev.shamoo.runtime.platform.paper.PaperUiBridge
All Implemented Interfaces:
AutoCloseable, org.bukkit.event.Listener

public final class PaperUiBridge extends Object implements org.bukkit.event.Listener, AutoCloseable
Owns script-created Paper inventories and opaque actionable item registrations.
  • Constructor Details

  • Method Details

    • openInventory

      public CompletionStage<dev.shamoo.runtime.core.PlatformOperationResult<Boolean>> openInventory(dev.shamoo.runtime.core.PluginId owner, String token, Object descriptor)
    • giveItem

      public CompletionStage<dev.shamoo.runtime.core.PlatformOperationResult<Boolean>> giveItem(dev.shamoo.runtime.core.PluginId owner, String token, Object descriptor)
    • onInventoryClick

      public void onInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event)
    • onInventoryDrag

      public void onInventoryDrag(org.bukkit.event.inventory.InventoryDragEvent event)
    • onInventoryClose

      public void onInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event)
    • onPlayerInteract

      public void onPlayerInteract(org.bukkit.event.player.PlayerInteractEvent event)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable