Class ParticleStyleArrows
java.lang.Object
dev.esophose.playerparticles.styles.DefaultParticleStyle
dev.esophose.playerparticles.styles.ParticleStyleArrows
- All Implemented Interfaces:
ParticleStyle
,org.bukkit.event.Listener
public class ParticleStyleArrows extends DefaultParticleStyle implements org.bukkit.event.Listener
-
Field Summary
Fields inherited from class dev.esophose.playerparticles.styles.DefaultParticleStyle
playerParticles
-
Constructor Summary
Constructors Modifier Constructor Description protected
ParticleStyleArrows()
-
Method Summary
Modifier and Type Method Description protected java.util.List<java.lang.String>
getGuiIconMaterialNames()
java.util.List<PParticle>
getParticles(ParticlePair particle, org.bukkit.Location location)
Gets all the particles to display based on the style's logicboolean
hasLongRangeVisibility()
protected void
loadSettings(CommentedFileConfiguration config)
Loads the settings for this stylevoid
onProjectileLaunch(org.bukkit.event.entity.ProjectileLaunchEvent event)
The event used to get all projectiles fired by players Adds all projectiles fired from players to the arrayprotected void
setDefaultSettings(CommentedFileConfiguration config)
Sets the default settings for this stylevoid
updateTimers()
Used to update timers for animations, called once per particle tickMethods inherited from class dev.esophose.playerparticles.styles.DefaultParticleStyle
canBeFixed, canToggleWithCombat, canToggleWithMovement, getFixedEffectOffset, getGuiIconMaterial, getInternalName, getName, isEnabled, loadSettings, setIfNotExists
-
Constructor Details
-
ParticleStyleArrows
protected ParticleStyleArrows()
-
-
Method Details
-
getParticles
Description copied from interface:ParticleStyle
Gets all the particles to display based on the style's logic- Specified by:
getParticles
in interfaceParticleStyle
- Parameters:
particle
- The ParticlePair that contains the particle's datalocation
- The central location of the particles- Returns:
- A List of PParticles to spawn
-
updateTimers
public void updateTimers()Description copied from interface:ParticleStyle
Used to update timers for animations, called once per particle tick- Specified by:
updateTimers
in interfaceParticleStyle
-
getGuiIconMaterialNames
protected java.util.List<java.lang.String> getGuiIconMaterialNames()- Specified by:
getGuiIconMaterialNames
in classDefaultParticleStyle
- Returns:
- A list of Strings to try to turn into Materials
-
hasLongRangeVisibility
public boolean hasLongRangeVisibility()- Specified by:
hasLongRangeVisibility
in interfaceParticleStyle
- Returns:
- true if the particle should be seen from the fixed effect distance instead of the player distance, or false otherwise
-
onProjectileLaunch
public void onProjectileLaunch(org.bukkit.event.entity.ProjectileLaunchEvent event)The event used to get all projectiles fired by players Adds all projectiles fired from players to the array- Parameters:
event
- The ProjectileLaunchEvent
-
setDefaultSettings
Description copied from class:DefaultParticleStyle
Sets the default settings for this style- Specified by:
setDefaultSettings
in classDefaultParticleStyle
- Parameters:
config
- The config to save to
-
loadSettings
Description copied from class:DefaultParticleStyle
Loads the settings for this style- Specified by:
loadSettings
in classDefaultParticleStyle
- Parameters:
config
- The config to load from
-