Packages 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
    Description
    Gets the crate instance associated with this opening animation.
    Gets the runner responsible for handling the current phase's animation.
    int
    Gets the current phase index in the animation sequence.
    Gets a list of all animation phases that this opening animation handler will run through.
    org.bukkit.entity.Player
    Gets the player associated with this opening animation.
    <T extends OpeningSession>
    T
    Gets the session for this opening animation, which tracks the overall state and progress of the crate opening.
    void
    Advances the animation to the next phase in the sequence.
  • Method Details

    • 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()
      Advances the animation to the next phase in the sequence.
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