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 ParticlePair
clone()
Gets a copy of this ParticlePairorg.bukkit.Material
getBlockMaterial()
Get the block Material this particle usesOrdinaryColor
getColor()
Get the color this particle usesColorTransition
getColorTransition()
Get the color transition this particle usesjava.lang.String
getDataString()
Gets the current particle data as a stringParticleEffect
getEffect()
Get the ParticleEffect that this ParticlePair representsint
getId()
Get the id of this particleorg.bukkit.Material
getItemMaterial()
Get the item Material this particle usesstatic ParticlePair
getNextDefault(PPlayer pplayer)
Gets a ParticlePair for a PPlayer with the default values appliedNoteColor
getNoteColor()
Get the note color this particle usesjava.util.UUID
getOwnerUniqueId()
Get the UUID of the PPlayer that owns this ParticlePairParticleColor
getSpawnColor()
Gets the color the current particle effect will spawn withColorTransition
getSpawnColorTransition()
Gets the color transition the current particle effect will spawn withorg.bukkit.Material
getSpawnMaterial()
Gets the material the current particle effect will spawn withParticleStyle
getStyle()
Get the ParticleStyle that this ParticlePair representsVibration
getVibration()
Get the vibration this particle usesvoid
setBlockMaterial(org.bukkit.Material blockMaterial)
Sets the player's block materialvoid
setColor(OrdinaryColor colorData)
Sets the player's color datavoid
setColorTransition(ColorTransition colorTransitionData)
Sets the player's color transition datavoid
setEffect(ParticleEffect effect)
Sets the player's particle effectvoid
setItemMaterial(org.bukkit.Material itemMaterial)
Sets the player's item materialvoid
setNoteColor(NoteColor noteColorData)
Sets the player's note color datavoid
setOwner(PPlayer pplayer)
Updates the particle's owner if it hasn't been set yetvoid
setStyle(ParticleStyle style)
Sets the player's particle stylevoid
setVibration(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:
clone
in 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
-