Class Changer.ChangerUtils

java.lang.Object
ch.njol.skript.classes.Changer.ChangerUtils
Enclosing interface:
Changer<T>

public abstract static class Changer.ChangerUtils extends Object
  • Constructor Details

    • ChangerUtils

      public ChangerUtils()
  • Method Details

    • change

      public static <T, V> void change(Changer<T> changer, Object[] what, @Nullable Object[] delta, Changer.ChangeMode mode)
    • acceptsChange

      public static boolean acceptsChange(Expression<?> e, Changer.ChangeMode mode, Class<?>... types)
      Tests whether an expression accepts changes of a certain type. If multiple types are given it test for whether any of the types is accepted.
      Parameters:
      e - The expression to test
      mode - The ChangeMode to use in the test
      types - The types to test for
      Returns:
      Whether e.change(event, type[], mode) can be used or not.