Package ch.njol.skript.classes
Class Changer.ChangerUtils
java.lang.Object
ch.njol.skript.classes.Changer.ChangerUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanacceptsChange(Expression<?> e, Changer.ChangeMode mode, Class<?>... types)Tests whether an expression accepts changes of a certain type.static <T, V> voidchange(Changer<T> changer, Object[] what, @Nullable Object[] delta, Changer.ChangeMode mode)
-
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
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 testmode- The ChangeMode to use in the testtypes- The types to test for- Returns:
- Whether e.
change(event, type[], mode) can be used or not.
-