Class BaseImageEffect

java.lang.Object
de.slikey.effectlib.Effect
de.slikey.effectlib.util.BaseImageEffect
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ColoredImageEffect, ImageEffect

public abstract class BaseImageEffect extends Effect
  • Field Details

    • fileName

      public String fileName
      For configuration-driven files
    • transparency

      public boolean transparency
      Whether to check for transparent pixels
    • frameDelay

      public int frameDelay
      How many ticks to show each frame
    • stepX

      public int stepX
      Each stepX pixel will be shown. Saves packets for high resolutions.
    • stepY

      public int stepY
      Each stepY pixel will be shown. Saves packets for high resolutions.
    • size

      public float size
      Scale the image down
    • enableRotation

      public boolean enableRotation
      Should it rotate?
    • rotation

      public org.bukkit.util.Vector rotation
      Apply a fixed rotation
    • orient

      public boolean orient
      Should it orient to face the player's direction?
    • orientPitch

      public boolean orientPitch
      Should it face in the same direction as the location. Obeying yaw and pitch?
    • plane

      public BaseImageEffect.Plane plane
      What plane should it rotate?
    • angularVelocityX

      public double angularVelocityX
      Turns the cube by this angle each iteration around the x-axis
    • angularVelocityY

      public double angularVelocityY
      Turns the cube by this angle each iteration around the y-axis
    • angularVelocityZ

      public double angularVelocityZ
      Turns the cube by this angle each iteration around the z-axis
    • images

      protected BufferedImage[] images
      Image as BufferedImage
    • step

      protected int step
      Step counter
    • rotationStep

      protected int rotationStep
      Rotation step counter
    • stepDelay

      protected int stepDelay
      Delay between steps
    • imageLoadCallback

      protected ImageLoadCallback imageLoadCallback
  • Constructor Details

    • BaseImageEffect

      public BaseImageEffect(EffectManager effectManager)
  • Method Details

    • initialize

      protected void initialize()
      Overrides:
      initialize in class Effect
    • reset

      public void reset()
      Description copied from class: Effect
      Effects should override this if they want to be reusable, this is called prior to starting so state can be reset.
      Overrides:
      reset in class Effect
    • load

      public void load(String fileName)
    • loadFile

      public void loadFile(File file)
    • onRun

      public void onRun()
      Specified by:
      onRun in class Effect
    • display

      protected abstract void display(BufferedImage image, org.bukkit.util.Vector v, org.bukkit.Location location, int pixel)