Class ParticlePair
java.lang.Object
dev.esophose.playerparticles.particles.ParticlePair
public class ParticlePair
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description ParticlePair(java.util.UUID ownerUUID, int id, ParticleEffect effect, ParticleStyle style, org.bukkit.Material itemMaterial, org.bukkit.Material blockMaterial, OrdinaryColor color, NoteColor noteColor)Deprecated.ParticlePair(java.util.UUID ownerUUID, int id, ParticleEffect effect, ParticleStyle style, org.bukkit.Material itemMaterial, org.bukkit.Material blockMaterial, OrdinaryColor color, NoteColor noteColor, ColorTransition colorTransition, Vibration vibration) -
Method Summary
Modifier and Type Method Description ParticlePairclone()Gets a copy of this ParticlePairorg.bukkit.MaterialgetBlockMaterial()Get the block Material this particle usesOrdinaryColorgetColor()Get the color this particle usesColorTransitiongetColorTransition()Get the color transition this particle usesjava.lang.StringgetDataString()Gets the current particle data as a stringParticleEffectgetEffect()Get the ParticleEffect that this ParticlePair representsintgetId()Get the id of this particleorg.bukkit.MaterialgetItemMaterial()Get the item Material this particle usesstatic ParticlePairgetNextDefault(PPlayer pplayer)Gets a ParticlePair for a PPlayer with the default values appliedNoteColorgetNoteColor()Get the note color this particle usesjava.util.UUIDgetOwnerUniqueId()Get the UUID of the PPlayer that owns this ParticlePairParticleColorgetSpawnColor()Gets the color the current particle effect will spawn withColorTransitiongetSpawnColorTransition()Gets the color transition the current particle effect will spawn withorg.bukkit.MaterialgetSpawnMaterial()Gets the material the current particle effect will spawn withParticleStylegetStyle()Get the ParticleStyle that this ParticlePair representsVibrationgetVibration()Get the vibration this particle usesvoidsetBlockMaterial(org.bukkit.Material blockMaterial)Sets the player's block materialvoidsetColor(OrdinaryColor colorData)Sets the player's color datavoidsetColorTransition(ColorTransition colorTransitionData)Sets the player's color transition datavoidsetEffect(ParticleEffect effect)Sets the player's particle effectvoidsetItemMaterial(org.bukkit.Material itemMaterial)Sets the player's item materialvoidsetNoteColor(NoteColor noteColorData)Sets the player's note color datavoidsetOwner(PPlayer pplayer)Updates the particle's owner if it hasn't been set yetvoidsetStyle(ParticleStyle style)Sets the player's particle stylevoidsetVibration(Vibration vibrationData)Sets the player's vibration data
-
Constructor Details
-
ParticlePair
public ParticlePair(java.util.UUID ownerUUID, int id, ParticleEffect effect, ParticleStyle style, org.bukkit.Material itemMaterial, org.bukkit.Material blockMaterial, OrdinaryColor color, NoteColor noteColor, ColorTransition colorTransition, Vibration vibration) -
ParticlePair
@Deprecated public ParticlePair(java.util.UUID ownerUUID, int id, ParticleEffect effect, ParticleStyle style, org.bukkit.Material itemMaterial, org.bukkit.Material blockMaterial, OrdinaryColor color, NoteColor noteColor)Deprecated.
-
-
Method Details
-
setOwner
Updates the particle's owner if it hasn't been set yet- Parameters:
pplayer- The new owner
-
setEffect
Sets the player's particle effect- Parameters:
effect- The player's new particle effect
-
setStyle
Sets the player's particle style- Parameters:
style- The player's new particle style
-
setItemMaterial
public void setItemMaterial(org.bukkit.Material itemMaterial)Sets the player's item material- Parameters:
itemMaterial- The player's new item material
-
setBlockMaterial
public void setBlockMaterial(org.bukkit.Material blockMaterial)Sets the player's block material- Parameters:
blockMaterial- The player's new block material
-
setColor
Sets the player's color data- Parameters:
colorData- The player's new color data
-
setNoteColor
Sets the player's note color data- Parameters:
noteColorData- The player's new note color data
-
setColorTransition
Sets the player's color transition data- Parameters:
colorTransitionData- The player's new color transition data
-
setVibration
Sets the player's vibration data- Parameters:
vibrationData- The player's new vibration data
-
getOwnerUniqueId
public java.util.UUID getOwnerUniqueId()Get the UUID of the PPlayer that owns this ParticlePair- Returns:
- The owner's UUID
-
getId
public int getId()Get the id of this particle- Returns:
- The id of this particle
-
getEffect
Get the ParticleEffect that this ParticlePair represents- Returns:
- The effect
-
getStyle
Get the ParticleStyle that this ParticlePair represents- Returns:
- The style
-
getItemMaterial
public org.bukkit.Material getItemMaterial()Get the item Material this particle uses- Returns:
- The item Material
-
getBlockMaterial
public org.bukkit.Material getBlockMaterial()Get the block Material this particle uses- Returns:
- The block Material
-
getColor
Get the color this particle uses- Returns:
- The color
-
getNoteColor
Get the note color this particle uses- Returns:
- The note color
-
getColorTransition
Get the color transition this particle uses- Returns:
- The color transition
-
getVibration
Get the vibration this particle uses- Returns:
- The vibration
-
getSpawnColor
Gets the color the current particle effect will spawn with- Returns:
- The ParticleColor the current particle effect will spawn with
-
getSpawnColorTransition
Gets the color transition the current particle effect will spawn with- Returns:
- The ColorTransition the current particle effect will spawn with
-
getSpawnMaterial
public org.bukkit.Material getSpawnMaterial()Gets the material the current particle effect will spawn with- Returns:
- The Material the current particle effect requires
-
getDataString
public java.lang.String getDataString()Gets the current particle data as a string- Returns:
- The particle data in a human-readable string
-
clone
Gets a copy of this ParticlePair- Overrides:
clonein classjava.lang.Object
-
getNextDefault
Gets a ParticlePair for a PPlayer with the default values applied- Parameters:
pplayer- The PPlayer that will own this ParticlePair- Returns:
- A ParticlePair with default values
-