Class PlayerSession
java.lang.Object
net.okocraft.box.feature.gui.api.session.PlayerSession
-
Method Summary
Modifier and TypeMethodDescription<T> T
computeDataIfAbsent
(@NotNull TypedKey<T> key, @NotNull Supplier<? extends T> supplier) <T> T
<T> T
getDataOrThrow
(@NotNull TypedKey<T> key) @NotNull com.github.siroshun09.messages.minimessage.source.MiniMessageSource
@NotNull StockHolder
@NotNull BoxUser
@NotNull org.bukkit.entity.Player
static @NotNull PlayerSession
newSession
(@NotNull org.bukkit.entity.Player viewer) static @NotNull PlayerSession
newSession
(@NotNull org.bukkit.entity.Player viewer, @NotNull BoxUser sourceUser) <T> void
<T> T
removeData
(@NotNull TypedKey<T> key)
-
Method Details
-
newSession
@NotNull public static @NotNull PlayerSession newSession(@NotNull @NotNull org.bukkit.entity.Player viewer) -
newSession
@NotNull public static @NotNull PlayerSession newSession(@NotNull @NotNull org.bukkit.entity.Player viewer, @NotNull @NotNull BoxUser sourceUser) -
getViewer
@NotNull public @NotNull org.bukkit.entity.Player getViewer() -
getSourceUser
-
getSourceStockHolder
-
getMessageSource
@NotNull public @NotNull com.github.siroshun09.messages.minimessage.source.MiniMessageSource getMessageSource() -
getData
-
getDataOrThrow
-
putData
-
computeDataIfAbsent
-
removeData
-