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

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