Class MaterialEffect


  • public abstract class MaterialEffect
    extends Object
    Create an effect on a material during a given time, a copy of the material will be created internally, modifying the material from outside will not affect the effect.
    Author:
    Grégory Van den Borre
    • Constructor Detail

      • MaterialEffect

        protected MaterialEffect​(Material material,
                                 Duration time)
        Parameters:
        material - Material to use.
        time - Time to last.
    • Method Detail

      • execute

        public final void execute()
      • executeImpl

        protected abstract void executeImpl​(Material material)