Class ParticleGroupPresetManager
java.lang.Object
dev.esophose.playerparticles.manager.Manager
dev.esophose.playerparticles.manager.ParticleGroupPresetManager
public class ParticleGroupPresetManager extends Manager
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FILE_NAME
-
Constructor Summary
Constructors Constructor Description ParticleGroupPresetManager(PlayerParticles playerParticles)
-
Method Summary
Modifier and Type Method Description void
disable()
Cleans up the Manager's resourcesint
getMaxPageNumber(PPlayer pplayer)
Gets the max page number for preset groups for a PPlayerParticleGroupPreset
getPresetGroup(java.lang.String groupName)
Gets a preset ParticleGroup by its namejava.util.Map<java.lang.Integer,ParticleGroupPresetPage>
getPresetGroupPages(PPlayer pplayer)
Gets a map of page numbers to preset pages for a PPlayerjava.util.List<ParticleGroupPreset>
getPresetGroupsForPlayer(PPlayer player)
Gets all the preset ParticleGroups that a player can usevoid
reload()
Loads the preset groups from the preset_groups.yml file
-
Field Details
-
FILE_NAME
public static final java.lang.String FILE_NAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
reload
public void reload()Loads the preset groups from the preset_groups.yml file -
disable
public void disable()Description copied from class:Manager
Cleans up the Manager's resources -
getPresetGroupPages
public java.util.Map<java.lang.Integer,ParticleGroupPresetPage> getPresetGroupPages(PPlayer pplayer)Gets a map of page numbers to preset pages for a PPlayer- Parameters:
pplayer
- The PPlayer- Returns:
- a Map of page numbers to preset pages for a PPlayer
-
getMaxPageNumber
Gets the max page number for preset groups for a PPlayer- Parameters:
pplayer
- The PPlayer- Returns:
- the max page number for the preset groups for a PPlayer
-
getPresetGroupsForPlayer
Gets all the preset ParticleGroups that a player can use- Parameters:
player
- The PPlayer- Returns:
- a List of preset ParticleGroups the player can use
-
getPresetGroup
Gets a preset ParticleGroup by its name- Parameters:
groupName
- The ParticleGroup name- Returns:
- The preset ParticleGroup if it exists, otherwise null
-