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 voiddisable()Cleans up the Manager's resourcesParticleStylegetStyleByInternalName(java.lang.String internalName)Gets a registered ParticleStyle by its internal nameParticleStylegetStyleByName(java.lang.String name)Gets a registered ParticleStyle by its namejava.util.Collection<ParticleStyle>getStyles()java.util.Collection<ParticleStyle>getStylesWithDisabled()booleanisEventHandled(ParticleStyle style)Returns if a given style is customly handledvoidreload()Reloads the Manager's settingsvoidupdateTimers()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:ManagerReloads the Manager's settings -
disable
public void disable()Description copied from class:ManagerCleans 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
-