Package hm.zelha.particlesfx.particles
Class ParticleDustColored
java.lang.Object
hm.zelha.particlesfx.particles.parents.Particle
hm.zelha.particlesfx.particles.parents.ColorableParticle
hm.zelha.particlesfx.particles.ParticleDustColored
- All Implemented Interfaces:
IParticle,SizeableParticle
- Direct Known Subclasses:
ParticleDustMulticolored
-
Field Summary
FieldsFields inherited from class hm.zelha.particlesfx.particles.parents.ColorableParticle
brightness, color -
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_20_R3.entity.CraftPlayer> players) intDeprecated.Unused in this class.protected 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.doublegetSize()only changes between 0 and 4.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.booleanif this is set to true, the particle will use derivatives of Float.MAX_VALUE to try and eliminate the variations in color when normally using colored dust.voidsetBrightness(int brightness) Deprecated.Unused in this class.setPureColor(boolean pureColor) if this is set to true, the particle will use derivatives of Float.MAX_VALUE to try and eliminate the variations in color when normally using colored dust.voidsetSize(double size) only changes between 0 and 4.Methods inherited from class hm.zelha.particlesfx.particles.parents.ColorableParticle
getColor, setColor, setColorMethods inherited from class hm.zelha.particlesfx.particles.parents.Particle
display, displayForPlayers, displayForPlayers, generateFakeOffset, getCount, getOffsetX, getOffsetY, getOffsetZ, getRadius, getSpeed, getStrangePacket, 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
-
pureColor
protected boolean pureColor -
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 interfaceIParticle- Specified by:
inheritin interfaceSizeableParticle- Overrides:
inheritin classColorableParticle- Parameters:
particle- particle for this object to copy data from- Returns:
- this object
-
clone
- Specified by:
clonein interfaceIParticle- Specified by:
clonein interfaceSizeableParticle- Specified by:
clonein classColorableParticle
-
display
protected void display(org.bukkit.Location location, List<org.bukkit.craftbukkit.v1_20_R3.entity.CraftPlayer> players) -
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.- Overrides:
getXYZin classColorableParticle- Parameters:
location- the location passed into the display method- Returns:
- the xyzHelper with the modified X/Y/Z values
-
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 classColorableParticle- 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 classColorableParticle- 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 classColorableParticle- Returns:
- the modified count value
-
setBrightness
Deprecated.Unused in this class.- Overrides:
setBrightnessin classColorableParticle- Parameters:
brightness- how saturated the color should be, from 0-100
-
setSize
public void setSize(double size) only changes between 0 and 4.- Specified by:
setSizein interfaceSizeableParticle
-
setPureColor
if this is set to true, the particle will use derivatives of Float.MAX_VALUE to try and eliminate the variations in color when normally using colored dust. aka no purple or brown or other colors like that- Parameters:
pureColor- whether the color should be pure- Returns:
- this object
-
getBrightness
Deprecated.Unused in this class.- Overrides:
getBrightnessin classColorableParticle
-
getSize
public double getSize()only changes between 0 and 4.- Specified by:
getSizein interfaceSizeableParticle
-
isPureColor
public boolean isPureColor()if this is set to true, the particle will use derivatives of Float.MAX_VALUE to try and eliminate the variations in color when normally using colored dust. aka no purple or brown or other colors like that- Returns:
- whether the color should be pure
-