Package de.slikey.effectlib.util
Class BaseImageEffect
java.lang.Object
de.slikey.effectlib.Effect
de.slikey.effectlib.util.BaseImageEffect
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
ColoredImageEffect,ImageEffect
-
Nested Class Summary
Nested Classes -
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-axisbooleanShould it rotate?For configuration-driven filesintHow many ticks to show each frameprotected ImageLoadCallbackprotected BufferedImage[]Image as BufferedImagebooleanShould it orient to face the player's direction?booleanShould it face in the same direction as the location.What plane should it rotate?org.bukkit.util.VectorApply a fixed rotationprotected intRotation step counterfloatScale the image downprotected intStep counterprotected intDelay between stepsintEach stepX pixel will be shown.intEach stepY pixel will be shown.booleanWhether to check for transparent pixelsFields 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 abstract voiddisplay(BufferedImage image, org.bukkit.util.Vector v, org.bukkit.Location location, int pixel) protected voidvoidvoidvoidonRun()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, 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
-
fileName
For configuration-driven files -
transparency
public boolean transparencyWhether to check for transparent pixels -
frameDelay
public int frameDelayHow many ticks to show each frame -
stepX
public int stepXEach stepX pixel will be shown. Saves packets for high resolutions. -
stepY
public int stepYEach stepY pixel will be shown. Saves packets for high resolutions. -
size
public float sizeScale the image down -
enableRotation
public boolean enableRotationShould it rotate? -
rotation
public org.bukkit.util.Vector rotationApply a fixed rotation -
orient
public boolean orientShould it orient to face the player's direction? -
orientPitch
public boolean orientPitchShould it face in the same direction as the location. Obeying yaw and pitch? -
plane
What plane should it rotate? -
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 -
images
Image as BufferedImage -
step
protected int stepStep counter -
rotationStep
protected int rotationStepRotation step counter -
stepDelay
protected int stepDelayDelay between steps -
imageLoadCallback
-
-
Constructor Details
-
BaseImageEffect
-
-
Method Details
-
initialize
protected void initialize()- Overrides:
initializein classEffect
-
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. -
load
-
loadFile
-
onRun
public void onRun() -
display
protected abstract void display(BufferedImage image, org.bukkit.util.Vector v, org.bukkit.Location location, int pixel)
-