Package de.slikey.effectlib.effect
Class CylinderEffect
java.lang.Object
de.slikey.effectlib.Effect
de.slikey.effectlib.effect.CylinderEffect
- All Implemented Interfaces:
Runnable
-
Field Summary
FieldsModifier and TypeFieldDescriptiondoubleTurns the cube by this angle each iteration around the x-axisdoubleTurns the cube by this angle each iteration around the y-axisdoubleTurns the cube by this angle each iteration around the z-axisbooleanTrue if rotation is enablefloatHeight of CylinderbooleanWhether or not to orient the effect in the direction of the source LocationintParticles in each rowfloatRadius of cylinderdoubleRotation of the cylinderdoubleRotation of the cylinderdoubleRotation of the cylinderprotected floatRatio of sides to entire surfacebooleanToggles the cylinder to be solidprotected 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
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
-
radius
public float radiusRadius of cylinder -
height
public float heightHeight of Cylinder -
angularVelocityX
public double angularVelocityXTurns the cube by this angle each iteration around the x-axis -
angularVelocityY
public double angularVelocityYTurns the cube by this angle each iteration around the y-axis -
angularVelocityZ
public double angularVelocityZTurns the cube by this angle each iteration around the z-axis -
rotationX
public double rotationXRotation of the cylinder -
rotationY
public double rotationYRotation of the cylinder -
rotationZ
public double rotationZRotation of the cylinder -
particles
public int particlesParticles in each row -
enableRotation
public boolean enableRotationTrue if rotation is enable -
solid
public boolean solidToggles the cylinder to be solid -
step
protected int stepCurrent step. Works as counter -
sideRatio
protected float sideRatioRatio of sides to entire surface -
orient
public boolean orientWhether or not to orient the effect in the direction of the source Location
-
-
Constructor Details
-
CylinderEffect
-
-
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() -
calculateSideRatio
protected void calculateSideRatio()
-