Interface PropertyHandler.ConditionPropertyHandler<Type>
- Type Parameters:
Type
- The type of object this property can be applied to.
- All Superinterfaces:
PropertyHandler<Type>
- Enclosing interface:
PropertyHandler<Type>
@Experimental
public static interface PropertyHandler.ConditionPropertyHandler<Type>
extends 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
PropertyHandler.ContainsHandler
does. Properties that use this interface should a
lso use PropertyBaseCondition
for the parent condition.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.skriptlang.skript.lang.properties.PropertyHandler
PropertyHandler.ConditionPropertyHandler<Type>, PropertyHandler.ContainsHandler<Container,
Element>, PropertyHandler.ExpressionPropertyHandler<Type, ReturnType>, PropertyHandler.TypedValuePropertyHandler<Type, ValueType> -
Method Summary
Modifier and TypeMethodDescriptionboolean
static <Type> @NotNull PropertyHandler.ConditionPropertyHandler
<Type> Creates a simple property handler from the given predicate.Methods inherited from interface org.skriptlang.skript.lang.properties.PropertyHandler
init, newInstance
-
Method Details
-
check
-
of
@Contract(value="_ -> new", pure=true) @NotNull static <Type> @NotNull PropertyHandler.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.
-