Interface ConditionPropertyHandler<Type>
- Type Parameters:
Type- The type of object this property can be applied to.
- All Superinterfaces:
PropertyHandler<Type>
A handler for a simple property condition. This property must be an inherent condition of the thing,
and not require secondary inputs, like
ContainsHandler does. Properties that use this interface should a
lso use PropertyBaseCondition for the parent condition.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic <Type> @NotNull ConditionPropertyHandler<Type> Creates a simple property handler from the given predicate.Methods inherited from interface org.skriptlang.skript.lang.properties.handlers.base.PropertyHandler
init, newInstance
-
Method Details
-
check
-
of
@Contract(value="_ -> new", pure=true) @NotNull static <Type> @NotNull ConditionPropertyHandler<Type> of(Predicate<Type> predicate) Creates a simple property handler from the given predicate.- Type Parameters:
Type- The type of object this property can be applied to.- Parameters:
predicate- The predicate to evaluate the condition with.- Returns:
- A new property handler that uses the given predicate.
-