Commit 2a245d19 authored by Iaroslav Postovalov's avatar Iaroslav Postovalov 💻
Browse files

Improve documentation of setupRuntimeForGui

parent 1e20b956
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ import io.github.commandertvis.plugin.gui.dsl.GuiView
import io.github.commandertvis.plugin.handle
import io.github.commandertvis.plugin.handleCancellable
import io.github.commandertvis.plugin.isFilledUp
import org.bukkit.Bukkit
import org.bukkit.event.inventory.*
import org.bukkit.event.player.PlayerQuitEvent
import org.bukkit.plugin.Plugin
@@ -14,8 +15,8 @@ private inline val InventoryEvent.guiView: GuiView<*>?
internal lateinit var runtimePlugin: Plugin

/**
 * Sets up necessary event handlers for GUI module's valid work. It mustn't be used not in PluginApi runtime
 * implementation
 * Sets up necessary event handlers for GUI module's valid work. It must be used only in PluginApi runtime
 * implementation!
 */
@Suppress("UNCHECKED_CAST")
public fun Plugin.setupRuntimeForGui() {