Package de.slikey.effectlib.effect
Class WaveEffect
java.lang.Object
de.slikey.effectlib.Effect
de.slikey.effectlib.effect.WaveEffect
- All Implemented Interfaces:
Runnable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Collection<org.bukkit.util.Vector>Caches the Vectors used to build the waveorg.bukkit.Colororg.bukkit.ParticlefloatDepth of the parabola tubeprotected booleanDo not mess with the following attributes.floatHeight of the wave in blocksfloatHeight of the parabola arc forming the backfloatThe distance from the origin location to the last point of the wavefloatThe distance from the origin location to the first point of the waveorg.bukkit.ParticleintAmount of particles forming the backintAmount of particles forming the tubeintRows to build the wave in the widthorg.bukkit.util.VectorVelocity of the wave Call velocity.zero() if the wave should be stationaryprotected final Collection<org.bukkit.util.Vector>Caches the Vectors used to build the wavefloatWidth of the wave in blocksFields 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 TypeMethodDescriptionvoidinvalidate(org.bukkit.Location location) Call this method when you change anything related to the creation of the wavevoidonRun()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
-
mainParticle
public org.bukkit.Particle mainParticle -
cloudParticle
public org.bukkit.Particle cloudParticle -
cloudColor
public org.bukkit.Color cloudColor -
velocity
public org.bukkit.util.Vector velocityVelocity of the wave Call velocity.zero() if the wave should be stationary -
waterCache
Caches the Vectors used to build the wave -
cloudCache
Caches the Vectors used to build the wave -
particlesFront
public int particlesFrontAmount of particles forming the tube -
particlesBack
public int particlesBackAmount of particles forming the back -
rows
public int rowsRows to build the wave in the width -
lengthFront
public float lengthFrontThe distance from the origin location to the first point of the wave -
lengthBack
public float lengthBackThe distance from the origin location to the last point of the wave -
depthFront
public float depthFrontDepth of the parabola tube -
heightBack
public float heightBackHeight of the parabola arc forming the back -
height
public float heightHeight of the wave in blocks -
width
public float widthWidth of the wave in blocks -
firstStep
protected boolean firstStepDo not mess with the following attributes. They build a cache to gain performance.
-
-
Constructor Details
-
WaveEffect
-
-
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. -
invalidate
public void invalidate(org.bukkit.Location location) Call this method when you change anything related to the creation of the wave -
onRun
public void onRun()
-