Package de.slikey.effectlib.effect
Class LineEffect
java.lang.Object
de.slikey.effectlib.Effect
de.slikey.effectlib.effect.LineEffect
- All Implemented Interfaces:
Runnable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected EffectInternal effectAtEnd instancebooleanShould it do a zig zag?doubleLength of arc A non-zero value here will use a length instead of the target endpointdoubleMax length of arc A non-zero value here will use this as the upper bound for the computed lengthintParticles per arcprotected intInternal counterorg.bukkit.configuration.ConfigurationSectionorg.bukkit.configuration.ConfigurationSectionprotected booleanInternal booleanorg.bukkit.util.VectorDirection of zig-zagsorg.bukkit.util.VectorRelative direction of zig-zagsintNumber of zig zags in the lineFields 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
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, 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
-
isZigZag
public boolean isZigZagShould it do a zig zag? -
zigZags
public int zigZagsNumber of zig zags in the line -
zigZagOffset
public org.bukkit.util.Vector zigZagOffsetDirection of zig-zags -
zigZagRelativeOffset
public org.bukkit.util.Vector zigZagRelativeOffsetRelative direction of zig-zags -
particles
public int particlesParticles per arc -
length
public double lengthLength of arc A non-zero value here will use a length instead of the target endpoint -
maxLength
public double maxLengthMax length of arc A non-zero value here will use this as the upper bound for the computed length -
subEffectAtEnd
public org.bukkit.configuration.ConfigurationSection subEffectAtEnd -
subEffectAtEndCached
public org.bukkit.configuration.ConfigurationSection subEffectAtEndCached -
zag
protected boolean zagInternal boolean -
step
protected int stepInternal counter -
effectAtEndCached
Internal effectAtEnd instance
-
-
Constructor Details
-
LineEffect
-
-
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() -
initialize
protected void initialize()- Overrides:
initializein classEffect
-