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 groupjava.lang.String
getDisplayName()
Gets the display name for this preset group for the GUIParticleGroup
getGroup()
Gets the underlying ParticleGrouporg.bukkit.Material
getGuiIcon()
Gets the GUI icon for this particle groupint
getGuiSlot()
Gets the GUI slot for this particle groupjava.util.List<java.lang.String>
getLore()
Gets the GUI lore for this particle group
-
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
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
Gets the underlying ParticleGroup- Returns:
- The underlying ParticleGroup
-