Class ParticleStyleManager
java.lang.Object
dev.esophose.playerparticles.manager.Manager
dev.esophose.playerparticles.manager.ParticleStyleManager
public class ParticleStyleManager extends Manager
-
Field Summary
-
Constructor Summary
Constructors Constructor Description ParticleStyleManager(PlayerParticles playerParticles)
-
Method Summary
Modifier and Type Method Description void
disable()
Cleans up the Manager's resourcesParticleStyle
getStyleByInternalName(java.lang.String internalName)
Gets a registered ParticleStyle by its internal nameParticleStyle
getStyleByName(java.lang.String name)
Gets a registered ParticleStyle by its namejava.util.Collection<ParticleStyle>
getStyles()
java.util.Collection<ParticleStyle>
getStylesWithDisabled()
boolean
isEventHandled(ParticleStyle style)
Returns if a given style is customly handledvoid
reload()
Reloads the Manager's settingsvoid
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
-
Constructor Details
-
Method Details
-
reload
public void reload()Description copied from class:Manager
Reloads the Manager's settings -
disable
public void disable()Description copied from class:Manager
Cleans up the Manager's resources -
isEventHandled
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
- Returns:
- A List of styles that are registered and enabled
-
getStylesWithDisabled
- Returns:
- all registered styles, regardless if they are enabled or not
-
getStyleByName
Gets a registered ParticleStyle by its name- Parameters:
name
- The name of the ParticleStyle- Returns:
- The ParticleStyle, or null if not found
-
getStyleByInternalName
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
-