Package de.slikey.effectlib.effect
Class DnaEffect
java.lang.Object
de.slikey.effectlib.Effect
de.slikey.effectlib.effect.DnaEffect
- All Implemented Interfaces:
Runnable
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatParticles between every baseorg.bukkit.Colororg.bukkit.Colororg.bukkit.ColorfloatGrowth per particlefloatLength of the dna-double-helixorg.bukkit.ParticleParticle of base 1org.bukkit.ParticleParticle of base 2org.bukkit.ParticleParticleType of spawned particleintParticles per baseintParticles to spawn per interationdoubleRadials to turn per stepfloatRadius of dna-double-helixprotected intCurrent step.Fields inherited from class de.slikey.effectlib.Effect
arrivalTime, asynchronous, autoOrient, blockData, blockDuration, callback, color, colorList, colors, delay, disappearWithOriginEntity, disappearWithTargetEntity, duration, effectManager, iterations, material, materialData, maxIterations, offset, origin, particle, particleCount, particleData, particleOffsetX, particleOffsetY, particleOffsetZ, particleSize, period, pitch, pitchOffset, probability, relativeOffset, sculkChargeRotation, shriekDelay, speed, subEffect, subEffectClass, target, targetOffset, targetPlayers, toColor, toColorList, toColors, type, updateDirections, updateLocations, visibleRange, yaw, yawOffset -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddrawParticle(org.bukkit.Location location, org.bukkit.util.Vector v, org.bukkit.Particle particle, org.bukkit.Color color) voidonRun()voidreset()Effects should override this if they want to be reusable, this is called prior to starting so state can be reset.Methods inherited from class de.slikey.effectlib.Effect
cancel, cancel, canDisappearWithOriginEntity, canDisappearWithTargetEntity, canUpdateDirections, display, display, display, display, display, getArrivalTime, getBlockData, getBlockDuration, getCallback, getColor, getColorList, getColors, getDelay, getDuration, getDynamicOrigin, getDynamicTarget, getEffectManager, getEntity, getIterations, getLocation, getMaterial, getMaterialData, getMaxIterations, getOffset, getOrigin, getParticle, getParticleCount, getParticleData, getParticleOffsetX, getParticleOffsetY, getParticleOffsetZ, getParticleSize, getPeriod, getPitch, getPitchOffset, getProbability, getRelativeOffset, getSculkChargeRotation, getShriekDelay, getSpeed, getStartTime, getSubEffect, getSubEffectClass, getTarget, getTargetEntity, getTargetOffset, getTargetPlayer, getTargetPlayers, getToColor, getToColorList, getToColors, getType, getVisibleRange, getYaw, getYawOffset, infinite, initialize, isAsynchronous, isAutoOrient, isDone, isPlaying, isUpdateLocations, onDone, parseColorList, prepare, reloadParameters, run, setBlockData, setBlockDuration, setDynamicOrigin, setDynamicTarget, setEntity, setLocation, setMaterial, setMaterialData, setMaxIterations, setOrigin, setParticleCount, setParticleOffsetX, setParticleOffsetY, setParticleOffsetZ, setParticleSize, setStartTime, setTarget, setTargetEntity, setTargetLocation, setTargetPlayer, setTargetPlayers, setType, start, updateDuration, updateLocation, updateTarget, validate
-
Field Details
-
particleHelix
public org.bukkit.Particle particleHelixParticleType of spawned particle -
colorHelix
public org.bukkit.Color colorHelix -
particleBase1
public org.bukkit.Particle particleBase1Particle of base 1 -
colorBase1
public org.bukkit.Color colorBase1 -
particleBase2
public org.bukkit.Particle particleBase2Particle of base 2 -
colorBase2
public org.bukkit.Color colorBase2 -
radials
public double radialsRadials to turn per step -
radius
public float radiusRadius of dna-double-helix -
particlesHelix
public int particlesHelixParticles to spawn per interation -
particlesBase
public int particlesBaseParticles per base -
length
public float lengthLength of the dna-double-helix -
grow
public float growGrowth per particle -
baseInterval
public float baseIntervalParticles between every base -
step
protected int stepCurrent step. Works as counter
-
-
Constructor Details
-
DnaEffect
-
-
Method Details
-
reset
public void reset()Description copied from class:EffectEffects should override this if they want to be reusable, this is called prior to starting so state can be reset. -
onRun
public void onRun() -
drawParticle
protected void drawParticle(org.bukkit.Location location, org.bukkit.util.Vector v, org.bukkit.Particle particle, org.bukkit.Color color)
-