Class ColorableParticle
java.lang.Object
hm.zelha.particlesfx.particles.parents.Particle
hm.zelha.particlesfx.particles.parents.ColorableParticle
- All Implemented Interfaces:
IParticle
- Direct Known Subclasses:
ParticleDustColored,ParticleEffectColored,ParticleEffectTransparent
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedColorableParticle(String particleID, Color color, int brightness, double offsetX, double offsetY, double offsetZ, int count) -
Method Summary
Modifier and TypeMethodDescriptionabstract ColorableParticleclone()intgetColor()nullable to allow for randomly colored particles without being complicatedprotected org.bukkit.util.VectorgetOffsets(org.bukkit.Location location) Meant to be overridden by child classes to modify the offset values of the packet sent to the player.protected intMeant to be overridden by child classes to modify the count value of the packet sent to the player.protected floatMeant to be overridden by child classes to modify the speed value of the packet sent to the player.protected org.bukkit.util.VectorgetXYZ(org.bukkit.Location location) Meant to be overridden by child classes to modify the X/Y/Z values of the packet sent to the player.voidsetBrightness(int brightness) voidsetColor(int red, int green, int blue) voidMethods inherited from class hm.zelha.particlesfx.particles.parents.Particle
display, display, displayForPlayers, displayForPlayers, generateFakeOffset, getCount, getOffsetX, getOffsetY, getOffsetZ, getRadius, getSpeed, getStrangePacket, setCount, setOffset, setOffsetX, setOffsetY, setOffsetZ, setRadius, setSpeed
-
Field Details
-
color
-
brightness
protected int brightness
-
-
Constructor Details
-
ColorableParticle
-
-
Method Details
-
inherit
-
clone
-
getXYZ
protected org.bukkit.util.Vector getXYZ(org.bukkit.Location location) Description copied from class:ParticleMeant to be overridden by child classes to modify the X/Y/Z values of the packet sent to the player. -
getOffsets
protected org.bukkit.util.Vector getOffsets(org.bukkit.Location location) Description copied from class:ParticleMeant to be overridden by child classes to modify the offset values of the packet sent to the player.- Overrides:
getOffsetsin classParticle- Parameters:
location- the location passed into the display method- Returns:
- the offsetHelper with the modified offset values
-
getPacketSpeed
protected float getPacketSpeed()Description copied from class:ParticleMeant to be overridden by child classes to modify the speed value of the packet sent to the player.- Overrides:
getPacketSpeedin classParticle- Returns:
- the modified speed value
-
getPacketCount
protected int getPacketCount()Description copied from class:ParticleMeant to be overridden by child classes to modify the count value of the packet sent to the player.- Overrides:
getPacketCountin classParticle- Returns:
- the modified count value
-
setColor
- Parameters:
color- color to set, null if you want random coloring
-
setColor
public void setColor(int red, int green, int blue) -
setBrightness
public void setBrightness(int brightness) - Parameters:
brightness- how saturated the color should be, from 0-100
-
getColor
nullable to allow for randomly colored particles without being complicated- Returns:
- color this particle is using
-
getBrightness
public int getBrightness()
-