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

Interface AnimationsRegistry



  • public interface AnimationsRegistry
    Registry for managing animation phases within the API. This interface provides methods to register, unregister, and retrieve animation phases, ensuring that phases are properly mapped by their type. It also allows lookup of specific phases by type and ID.
    • Method Detail

      • registerPhase

        void registerPhase(AnimationPhase phaseType)
        Registers a phase into the lookup table. The phase is mapped by its type, so the phase type must be unique.
        Parameters:
        phaseType - The phase to be registered.
      • unregisterPhase

        void unregisterPhase(AnimationPhase phaseType)
        Unregisters a phase from the lookup table. Removes the phase entry associated with the phase type.
        Parameters:
        phaseType - The phase to be unregistered.
      • getPhases

        Collection<AnimationPhase> getPhases(PhaseType type)
        Retrieves all phases associated with a specific phase type. This returns an unmodifiable collection to ensure immutability.
        Parameters:
        type - The type of phase to retrieve.
        Returns:
        A collection of animation phases for the specified type.
      • getPhaseById

        Optional<AnimationPhase> getPhaseById(PhaseType type,
                                              String id)
        Retrieves an Optional of an AnimationPhase based on the given phase type and id. This method searches through the registry and returns the matching phase if found, otherwise it returns an empty Optional.
        Parameters:
        type - The PhaseType to filter the animation phases by.
        id - The id of the animation phase to retrieve.
        Returns:
        An Optional containing the AnimationPhase if found, or an empty Optional if not found.
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