Class PlayerSession

java.lang.Object
net.okocraft.box.feature.gui.api.session.PlayerSession

public final class PlayerSession extends Object
  • 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

      @NotNull public @NotNull BoxUser getSourceUser()
    • getSourceStockHolder

      @NotNull public @NotNull StockHolder getSourceStockHolder()
    • getMessageSource

      @NotNull public @NotNull com.github.siroshun09.messages.minimessage.source.MiniMessageSource getMessageSource()
    • getData

      @Nullable public <T> T getData(@NotNull @NotNull TypedKey<T> key)
    • getDataOrThrow

      @NotNull public <T> T getDataOrThrow(@NotNull @NotNull TypedKey<T> key)
    • putData

      public <T> void putData(@NotNull @NotNull TypedKey<T> key, @NotNull T data)
    • computeDataIfAbsent

      @NotNull public <T> T computeDataIfAbsent(@NotNull @NotNull TypedKey<T> key, @NotNull @NotNull Supplier<? extends T> supplier)
    • removeData

      @Nullable public <T> T removeData(@NotNull @NotNull TypedKey<T> key)