Class PaperUiBridge
java.lang.Object
dev.shamoo.runtime.platform.paper.PaperUiBridge
- All Implemented Interfaces:
AutoCloseable,org.bukkit.event.Listener
Owns script-created Paper inventories and opaque actionable item registrations.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic final class -
Constructor Summary
ConstructorsConstructorDescriptionPaperUiBridge(org.bukkit.plugin.java.JavaPlugin plugin, PaperCommandContextBridge contexts) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()CompletionStage<dev.shamoo.runtime.core.PlatformOperationResult<Boolean>> voidonInventoryClick(org.bukkit.event.inventory.InventoryClickEvent event) voidonInventoryClose(org.bukkit.event.inventory.InventoryCloseEvent event) voidonInventoryDrag(org.bukkit.event.inventory.InventoryDragEvent event) voidonPlayerInteract(org.bukkit.event.player.PlayerInteractEvent event) CompletionStage<dev.shamoo.runtime.core.PlatformOperationResult<Boolean>> openInventory(dev.shamoo.runtime.core.PluginId owner, String token, Object descriptor)
-
Constructor Details
-
PaperUiBridge
-
-
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:
closein interfaceAutoCloseable
-