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 crate animation
com.phoenixplugins.phoenixcrates.api.crate.animation

Interface OpeningAnimationHandler



  • public interface OpeningAnimationHandler
    Interface to handle the opening animation lifecycle for a crate. This interface defines the methods necessary to access and manage the opening animation, including tracking the current phase, and accessing the player and crate involved.
    • Method Summary

      Modifier and Type Method and Description
      CrateInstance getCrate()
      Gets the crate instance associated with this opening animation.
      PhaseRunner getCurrentPhase()
      Gets the runner responsible for handling the current phase's animation.
      int getCurrentPhaseIndex()
      Gets the current phase index in the animation sequence.
      List<PhaseRunner> getPhases()
      Gets a list of all animation phases that this opening animation handler will run through.
      org.bukkit.entity.Player getPlayer()
      Gets the player associated with this opening animation.
      <T extends OpeningSession>
      T
      getSession()
      Gets the session for this opening animation, which tracks the overall state and progress of the crate opening.
      void nextPhase() 
    • Method Detail

      • getPlayer

        org.bukkit.entity.Player getPlayer()
        Gets the player associated with this opening animation.
        Returns:
        The player involved in the opening animation.
      • getSession

        <T extends OpeningSession> T getSession()
        Gets the session for this opening animation, which tracks the overall state and progress of the crate opening.
        Type Parameters:
        T - the specific type of OpeningSession returned
        Returns:
        the current opening session of type T
      • getCrate

        CrateInstance getCrate()
        Gets the crate instance associated with this opening animation.
        Returns:
        The crate instance being opened in this animation.
      • getCurrentPhaseIndex

        int getCurrentPhaseIndex()
        Gets the current phase index in the animation sequence.
        Returns:
        The current phase index.
      • getCurrentPhase

        PhaseRunner getCurrentPhase()
        Gets the runner responsible for handling the current phase's animation.
        Returns:
        The current animation runner (phase).
      • getPhases

        List<PhaseRunner> getPhases()
        Gets a list of all animation phases that this opening animation handler will run through.
        Returns:
        A list of animation runners (phases).
      • nextPhase

        void nextPhase()
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