Class ParticleGroup
java.lang.Object
dev.esophose.playerparticles.particles.ParticleGroup
public class ParticleGroup
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DEFAULT_NAME
-
Constructor Summary
Constructors Constructor Description ParticleGroup(java.lang.String name, java.util.Map<java.lang.Integer,ParticlePair> particles)
-
Method Summary
Modifier and Type Method Description boolean
canPlayerUse(PPlayer player)
Checks if a player has permission to use this particle groupstatic ParticleGroup
getDefaultGroup()
Gets an empty ParticleGroupjava.lang.String
getName()
Get the player-given name of this ParticleGroup This will be null if it's the player's active ParticleGroupjava.util.Map<java.lang.Integer,ParticlePair>
getParticles()
Get the map of ParticlePairs in this group
-
Field Details
-
DEFAULT_NAME
public static final java.lang.String DEFAULT_NAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
ParticleGroup
public ParticleGroup(java.lang.String name, java.util.Map<java.lang.Integer,ParticlePair> particles)
-
-
Method Details
-
getName
public java.lang.String getName()Get the player-given name of this ParticleGroup This will be null if it's the player's active ParticleGroup- Returns:
- The name of this group
-
getParticles
Get the map of ParticlePairs in this group- Returns:
- The particles in this group
-
getDefaultGroup
Gets an empty ParticleGroup- Returns:
- The default empty active ParticleGroup
-
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
-