Class ParticleStyleManager

java.lang.Object
dev.esophose.playerparticles.manager.Manager
dev.esophose.playerparticles.manager.ParticleStyleManager

public class ParticleStyleManager
extends Manager
  • Constructor Details

  • Method Details

    • reload

      public void reload()
      Description copied from class: Manager
      Reloads the Manager's settings
      Specified by:
      reload in class Manager
    • disable

      public void disable()
      Description copied from class: Manager
      Cleans up the Manager's resources
      Specified by:
      disable in class Manager
    • isEventHandled

      public boolean isEventHandled​(ParticleStyle style)
      Returns if a given style is customly handled
      Parameters:
      style - The style to check
      Returns:
      If the style is handled in a custom manner
    • getStyles

      public java.util.Collection<ParticleStyle> getStyles()
      Returns:
      A List of styles that are registered and enabled
    • getStylesWithDisabled

      public java.util.Collection<ParticleStyle> getStylesWithDisabled()
      Returns:
      all registered styles, regardless if they are enabled or not
    • getStyleByName

      public ParticleStyle getStyleByName​(java.lang.String name)
      Gets a registered ParticleStyle by its name
      Parameters:
      name - The name of the ParticleStyle
      Returns:
      The ParticleStyle, or null if not found
    • getStyleByInternalName

      public ParticleStyle getStyleByInternalName​(java.lang.String internalName)
      Gets a registered ParticleStyle by its internal name
      Parameters:
      internalName - The internal name of the ParticleStyle
      Returns:
      The ParticleStyle, or null if not found
    • updateTimers

      public void updateTimers()
      Updates all the timers for the particle styles to make the animations Do not call this in your plugin, it will mess with other styles