Package hm.zelha.particlesfx.particles
Class ParticleDustColored
java.lang.Object
hm.zelha.particlesfx.particles.parents.Particle
hm.zelha.particlesfx.particles.ParticleDustColored
- All Implemented Interfaces:
ColorableParticle,IParticle,SizeableParticle
- Direct Known Subclasses:
ParticleDustMulticolored
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParticleDustColored(double size) ParticleDustColored(double offsetX, double offsetY, double offsetZ) ParticleDustColored(double size, double offsetX, double offsetY, double offsetZ) ParticleDustColored(double size, double offsetX, double offsetY, double offsetZ, int count) ParticleDustColored(double offsetX, double offsetY, double offsetZ, int count) ParticleDustColored(int count) ParticleDustColored(Color color) ParticleDustColored(Color color, double size) ParticleDustColored(Color color, double offsetX, double offsetY, double offsetZ) ParticleDustColored(Color color, double size, double offsetX, double offsetY, double offsetZ, int count) ParticleDustColored(Color color, double offsetX, double offsetY, double offsetZ, int count) ParticleDustColored(Color color, double size, 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 complicateddoublegetSize()only changes between 0 and 4.voidsetColor(int red, int green, int blue) voidvoidsetSize(double size) only changes between 0 and 4.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
-
colorHelper
-
color
-
size
protected double size
-
-
Constructor Details
-
ParticleDustColored
public ParticleDustColored(@Nullable Color color, double size, double offsetX, double offsetY, double offsetZ, int count) -
ParticleDustColored
public ParticleDustColored(double size, double offsetX, double offsetY, double offsetZ, int count) -
ParticleDustColored
public ParticleDustColored(@Nullable Color color, double offsetX, double offsetY, double offsetZ, int count) -
ParticleDustColored
public ParticleDustColored(double offsetX, double offsetY, double offsetZ, int count) -
ParticleDustColored
-
ParticleDustColored
public ParticleDustColored(double size, double offsetX, double offsetY, double offsetZ) -
ParticleDustColored
public ParticleDustColored(double offsetX, double offsetY, double offsetZ) -
ParticleDustColored
-
ParticleDustColored
-
ParticleDustColored
-
ParticleDustColored
public ParticleDustColored(int count) -
ParticleDustColored
public ParticleDustColored(double size) -
ParticleDustColored
public ParticleDustColored()
-
-
Method Details
-
inherit
- Specified by:
inheritin interfaceColorableParticle- Specified by:
inheritin interfaceIParticle- Specified by:
inheritin interfaceSizeableParticle- Overrides:
inheritin classParticle- Parameters:
particle- particle for this object to copy data from- Returns:
- this object
-
clone
- Specified by:
clonein interfaceColorableParticle- Specified by:
clonein interfaceIParticle- Specified by:
clonein interfaceSizeableParticle- Specified by:
clonein classParticle
-
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
-
setSize
public void setSize(double size) only changes between 0 and 4.- Specified by:
setSizein interfaceSizeableParticle
-
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
-
getSize
public double getSize()only changes between 0 and 4.- Specified by:
getSizein interfaceSizeableParticle
-