Packages 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 Details

    • 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
    • getAnimationHandler

      OpeningAnimationHandler getAnimationHandler()
      Gets the animation handler controlling the visual animations during this crate opening session.
      Returns:
      The OpeningAnimationHandler for this session.
Last updated 10 days ago
My Cart
Spider

Your cart is empty

Looks like the spiders padded through here. Pick a plugin and it will show up here. Continue shopping