Class ParticleGroupPreset

java.lang.Object
dev.esophose.playerparticles.particles.preset.ParticleGroupPreset

public class ParticleGroupPreset
extends java.lang.Object
  • Constructor Summary

    Constructors 
    Constructor Description
    ParticleGroupPreset​(java.lang.String displayName, org.bukkit.Material guiIcon, int guiSlot, java.util.List<java.lang.String> lore, java.lang.String permission, boolean allowPermissionOverride, ParticleGroup group)  
  • Method Summary

    Modifier and Type Method Description
    boolean canPlayerUse​(PPlayer player)
    Checks if a player has permission to use this particle group
    java.lang.String getDisplayName()
    Gets the display name for this preset group for the GUI
    ParticleGroup getGroup()
    Gets the underlying ParticleGroup
    org.bukkit.Material getGuiIcon()
    Gets the GUI icon for this particle group
    int getGuiSlot()
    Gets the GUI slot for this particle group
    java.util.List<java.lang.String> getLore()
    Gets the GUI lore for this particle group

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ParticleGroupPreset

      public ParticleGroupPreset​(java.lang.String displayName, org.bukkit.Material guiIcon, int guiSlot, java.util.List<java.lang.String> lore, java.lang.String permission, boolean allowPermissionOverride, ParticleGroup group)
  • Method Details

    • getDisplayName

      public java.lang.String getDisplayName()
      Gets the display name for this preset group for the GUI
      Returns:
      The display name of the preset group
    • getGuiIcon

      public org.bukkit.Material getGuiIcon()
      Gets the GUI icon for this particle group
      Returns:
      The GUI icon for this particle group
    • getGuiSlot

      public int getGuiSlot()
      Gets the GUI slot for this particle group
      Returns:
      The GUI slot for this particle group
    • getLore

      public java.util.List<java.lang.String> getLore()
      Gets the GUI lore for this particle group
      Returns:
      The GUI lore for this particle group
    • canPlayerUse

      public boolean canPlayerUse​(PPlayer player)
      Checks if a player has permission to use this particle group
      Parameters:
      player - The player to check
      Returns:
      True if the player has permission
    • getGroup

      public ParticleGroup getGroup()
      Gets the underlying ParticleGroup
      Returns:
      The underlying ParticleGroup