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