Class ParticleGroupPresetManager

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

public class ParticleGroupPresetManager
extends Manager
  • Field Details

  • Constructor Details

  • Method Details

    • reload

      public void reload()
      Loads the preset groups from the preset_groups.yml file
      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
    • 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

      public int getMaxPageNumber​(PPlayer pplayer)
      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

      public java.util.List<ParticleGroupPreset> getPresetGroupsForPlayer​(PPlayer player)
      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

      public ParticleGroupPreset getPresetGroup​(java.lang.String groupName)
      Gets a preset ParticleGroup by its name
      Parameters:
      groupName - The ParticleGroup name
      Returns:
      The preset ParticleGroup if it exists, otherwise null