Package hm.zelha.particlesfx.particles
Class ParticleEffectColored
java.lang.Object
hm.zelha.particlesfx.particles.parents.Particle
hm.zelha.particlesfx.particles.ParticleEffectColored
- All Implemented Interfaces:
ColorableParticle,IParticle
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParticleEffectColored(double offsetX, double offsetY, double offsetZ) ParticleEffectColored(double offsetX, double offsetY, double offsetZ, int count) ParticleEffectColored(int count) ParticleEffectColored(int transparency, double offsetX, double offsetY, double offsetZ) ParticleEffectColored(int transparency, double offsetX, double offsetY, double offsetZ, int count) ParticleEffectColored(Color color) ParticleEffectColored(Color color, double offsetX, double offsetY, double offsetZ) ParticleEffectColored(Color color, int transparency, double offsetX, double offsetY, double offsetZ, int count) -
Method Summary
Modifier and TypeMethodDescriptionclone()protected voiddisplay(org.bukkit.Location location, List<org.bukkit.craftbukkit.v1_21_R3.entity.CraftPlayer> players) getColor()nullable to allow for randomly colored particles without being complicatedintvoidsetColor(int red, int green, int blue) voidsetTransparency(int transparency) Methods inherited from class hm.zelha.particlesfx.particles.parents.Particle
display, displayForPlayers, displayForPlayers, generateFakeOffset, getCount, getOffsets, getOffsetX, getOffsetY, getOffsetZ, getPacketCount, getPacketSpeed, getRadius, getSpeed, getStrangePacket, getXYZ, setCount, setOffset, setOffsetX, setOffsetY, setOffsetZ, setRadius, setSpeedMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface hm.zelha.particlesfx.particles.parents.IParticle
display, displayForPlayers, displayForPlayers, getCount, getOffsetX, getOffsetY, getOffsetZ, getRadius, getSpeed, setCount, setOffset, setOffsetX, setOffsetY, setOffsetZ, setRadius, setSpeed
-
Field Details
-
color
-
-
Constructor Details
-
ParticleEffectColored
public ParticleEffectColored(@Nullable Color color, int transparency, double offsetX, double offsetY, double offsetZ, int count) -
ParticleEffectColored
public ParticleEffectColored(int transparency, double offsetX, double offsetY, double offsetZ, int count) -
ParticleEffectColored
-
ParticleEffectColored
public ParticleEffectColored(int transparency, double offsetX, double offsetY, double offsetZ) -
ParticleEffectColored
public ParticleEffectColored(double offsetX, double offsetY, double offsetZ, int count) -
ParticleEffectColored
public ParticleEffectColored(double offsetX, double offsetY, double offsetZ) -
ParticleEffectColored
-
ParticleEffectColored
public ParticleEffectColored(int count) -
ParticleEffectColored
public ParticleEffectColored()
-
-
Method Details
-
inherit
-
clone
-
display
protected void display(org.bukkit.Location location, List<org.bukkit.craftbukkit.v1_21_R3.entity.CraftPlayer> players) -
setColor
- Specified by:
setColorin interfaceColorableParticle- Parameters:
color- color to set, null if you want random coloring
-
setColor
public void setColor(int red, int green, int blue) - Specified by:
setColorin interfaceColorableParticle
-
setTransparency
- Parameters:
transparency- the transparency of the particle, from 0 to 255- Returns:
- this object
-
getColor
Description copied from interface:ColorableParticlenullable to allow for randomly colored particles without being complicated- Specified by:
getColorin interfaceColorableParticle- Returns:
- color this particle is using
-
getTransparency
public int getTransparency()- Returns:
- the transparency of the particle, from 0 to 255
-