public abstract class BaseImageEffect extends Effect
| Modifier and Type | Class and Description |
|---|---|
static class |
BaseImageEffect.Plane |
| Modifier and Type | Field and Description |
|---|---|
double |
angularVelocityX
Turns the cube by this angle each iteration around the x-axis
|
double |
angularVelocityY
Turns the cube by this angle each iteration around the y-axis
|
double |
angularVelocityZ
Turns the cube by this angle each iteration around the z-axis
|
boolean |
enableRotation
Should it rotate?
|
String |
fileName
For configuration-driven files
|
int |
frameDelay
How many ticks to show each frame
|
protected ImageLoadCallback |
imageLoadCallback |
protected BufferedImage[] |
images
Image as BufferedImage
|
boolean |
orient
Should it orient to face the player's direction?
|
boolean |
orientPitch
Should it face in the same direction as the location.
|
org.bukkit.Particle |
particle
Particle to draw the image
|
BaseImageEffect.Plane |
plane
What plane should it rotate?
|
org.bukkit.util.Vector |
rotation
Apply a fixed rotation
|
protected int |
rotationStep
Rotation step counter
|
float |
size
Scale the image down
|
protected int |
step
Step counter
|
protected int |
stepDelay
Delay between steps
|
int |
stepX
Each stepX pixel will be shown.
|
int |
stepY
Each stepY pixel will be shown.
|
boolean |
transparency
Whether or not to check for transparent pixels
|
arrivalTime, asynchronous, autoOrient, callback, color, colorList, colors, delay, disappearWithOriginEntity, disappearWithTargetEntity, duration, effectManager, iterations, material, materialData, maxIterations, offset, origin, particleCount, particleData, particleOffsetX, particleOffsetY, particleOffsetZ, particleSize, period, pitch, pitchOffset, probability, relativeOffset, speed, subEffect, target, targetOffset, targetPlayer, targetPlayers, toColor, toColorList, toColors, type, updateDirections, updateLocations, visibleRange, yaw, yawOffset| Constructor and Description |
|---|
BaseImageEffect(EffectManager effectManager) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
display(BufferedImage image,
org.bukkit.util.Vector v,
org.bukkit.Location location,
int pixel) |
void |
load(String fileName) |
void |
loadFile(File file) |
void |
onRun() |
void |
reset()
Effects should override this if they want to be reusable, this is called prior to starting so
state can be reset.
|
cancel, cancel, display, display, display, display, display, getDelay, getEntity, getLocation, getPeriod, getStartTime, getTarget, getTargetEntity, getTargetPlayer, getType, infinite, initialize, isAsynchronous, isDone, onDone, parseColorList, prepare, reloadParameters, run, setDynamicOrigin, setDynamicTarget, setEntity, setLocation, setStartTime, setTargetEntity, setTargetLocation, setTargetPlayer, start, updateDuration, updateLocation, updateTarget, validatepublic org.bukkit.Particle particle
public String fileName
public boolean transparency
public int frameDelay
public int stepX
public int stepY
public float size
public boolean enableRotation
public org.bukkit.util.Vector rotation
public boolean orient
public boolean orientPitch
public BaseImageEffect.Plane plane
public double angularVelocityX
public double angularVelocityY
public double angularVelocityZ
protected BufferedImage[] images
protected int step
protected int rotationStep
protected int stepDelay
protected ImageLoadCallback imageLoadCallback
public BaseImageEffect(EffectManager effectManager)
public void reset()
Effectpublic void load(String fileName)
public void loadFile(File file)
protected abstract void display(BufferedImage image, org.bukkit.util.Vector v, org.bukkit.Location location, int pixel)
Copyright © 2021 elMakers. All rights reserved.