Class PParticle
java.lang.Object
dev.esophose.playerparticles.particles.PParticle
public class PParticle
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description PParticle(org.bukkit.Location location)
The constructor used if you just want stand-still particles Useful for making shapes with the stylesPParticle(org.bukkit.Location location, double xOff, double yOff, double zOff, double speed)
The constructor with all the fancy parameters for customizationPParticle(org.bukkit.Location location, double xOff, double yOff, double zOff, double speed, boolean directional)
The constructor with all the fancy parameters for customizationPParticle(org.bukkit.Location location, double xOff, double yOff, double zOff, double speed, boolean directional, float size)
The constructor with all the fancy parameters and override data for customizationPParticle(org.bukkit.Location location, double xOff, double yOff, double zOff, double speed, boolean directional, java.lang.Object overrideData)
The constructor with all the fancy parameters and override data for customization -
Method Summary
Modifier and Type Method Description org.bukkit.Location
getLocation(boolean colorable)
Gets the location that the particle will be displayed at Offsets must be applied manually if this is a colorable effectjava.lang.Object
getOverrideData()
Gets the data to override for the particlefloat
getSize()
Gets the size of the particledouble
getSpeed()
Gets the speed of the particledouble
getXOff()
Gets the offset on the x-axis for the particledouble
getYOff()
Gets the offset on the y-axis for the particledouble
getZOff()
Gets the offset on the z-axis for the particleboolean
isDirectional()
Gets if the particle is directional
-
Constructor Details
-
PParticle
public PParticle(org.bukkit.Location location, double xOff, double yOff, double zOff, double speed, boolean directional, java.lang.Object overrideData)The constructor with all the fancy parameters and override data for customization- Parameters:
location
- The location to display the particle atxOff
- The offset for the x-axisyOff
- The offset for the y-axiszOff
- The offset for the z-axisspeed
- The speed the particle will move atdirectional
- If the particle should use the x, y, and z offsets as directions insteadoverrideData
- If not null, will override the player's set data on spawn
-
PParticle
public PParticle(org.bukkit.Location location, double xOff, double yOff, double zOff, double speed, boolean directional, float size)The constructor with all the fancy parameters and override data for customization- Parameters:
location
- The location to display the particle atxOff
- The offset for the x-axisyOff
- The offset for the y-axiszOff
- The offset for the z-axisspeed
- The speed the particle will move atdirectional
- If the particle should use the x, y, and z offsets as directions insteadsize
- Size of the redstone particle
-
PParticle
public PParticle(org.bukkit.Location location, double xOff, double yOff, double zOff, double speed, boolean directional)The constructor with all the fancy parameters for customization- Parameters:
location
- The location to display the particle atxOff
- The offset for the x-axisyOff
- The offset for the y-axiszOff
- The offset for the z-axisspeed
- The speed the particle will move atdirectional
- If the particle should use the x, y, and z offsets as directions instead
-
PParticle
public PParticle(org.bukkit.Location location, double xOff, double yOff, double zOff, double speed)The constructor with all the fancy parameters for customization- Parameters:
location
- The location to display the particle atxOff
- The offset for the x-axisyOff
- The offset for the y-axiszOff
- The offset for the z-axisspeed
- The speed the particle will move at
-
PParticle
public PParticle(org.bukkit.Location location)The constructor used if you just want stand-still particles Useful for making shapes with the styles- Parameters:
location
- The location to display the particles at
-
-
Method Details
-
getLocation
public org.bukkit.Location getLocation(boolean colorable)Gets the location that the particle will be displayed at Offsets must be applied manually if this is a colorable effect- Parameters:
colorable
- Whether or not this effect is colorable and we need to manually adjust for the offsets or not- Returns:
- The location, either as normal or modified with the offsets
-
getSpeed
public double getSpeed()Gets the speed of the particle- Returns:
- The particle's speed
-
isDirectional
public boolean isDirectional()Gets if the particle is directional- Returns:
- If the particle is directional
-
getXOff
public double getXOff()Gets the offset on the x-axis for the particle- Returns:
- The x-axis offset
-
getSize
public float getSize()Gets the size of the particle- Returns:
- The size
-
getYOff
public double getYOff()Gets the offset on the y-axis for the particle- Returns:
- The y-axis offset
-
getZOff
public double getZOff()Gets the offset on the z-axis for the particle- Returns:
- The z-axis offset
-
getOverrideData
public java.lang.Object getOverrideData()Gets the data to override for the particle- Returns:
- The data to override for the particle, may be null
-