Promotion background
Easter Season IS HERE!
10% off limited time offer!
Ends in
00
H
00
M
00
S
limited time offer SAVE 10% NOW →
Packages com.phoenixplugins.phoenixcrates.api session
com.phoenixplugins.phoenixcrates.api.session

Interface OpeningSession



  • public interface OpeningSession
    Represents an opening session for a crate.

    An OpeningSession encapsulates all of the components involved in the process of opening a crate, including the crate instance itself, the context of the opening, the rewards generator, and the animation handler.

    This interface defines the contract for accessing these components.

    • Method Detail

      • getCrate

        CrateInstance getCrate()
        Gets the crate instance being opened in this session.
        Returns:
        The CrateInstance for this session.
      • getContext

        <T extends OpeningContext> T getContext()
        Gets the opening context, which contains session-specific data such as the player and relevant metadata.
        Type Parameters:
        T - The type of opening context.
        Returns:
        the current opening context of type T
      • getRewardsGenerator

        <T extends RewardsGenerator> T getRewardsGenerator()
        Gets the rewards generator responsible for generating rewards during this session.
        Type Parameters:
        T - The type of rewards generator.
        Returns:
        the rewards generator of type T
Last updated about 3 hours ago
My Cart (0 items)

Oops... looks like the spiders padded through here

Add products to your cart and remove them from here Lets buy
This site uses cookies to personalize content, enhance your experience. By continuing, you agree to our cookie use. Learn more