Interface PropertyHandler.TypedValuePropertyHandler<Type,ValueType>
- All Superinterfaces:
PropertyHandler<Type>
,PropertyHandler.ExpressionPropertyHandler<Type,
ValueType>
- Enclosing interface:
PropertyHandler<Type>
@Experimental
public static interface PropertyHandler.TypedValuePropertyHandler<Type,ValueType>
extends PropertyHandler.ExpressionPropertyHandler<Type,ValueType>
-
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 TypeMethodDescriptionConverts the given object to the property value.default <Converted>
Converteddefault ValueType
convertChangeValue
(Object value) This method can be used to convert change values to ValueType (or null)Methods inherited from interface org.skriptlang.skript.lang.properties.PropertyHandler
init, newInstance
Methods inherited from interface org.skriptlang.skript.lang.properties.PropertyHandler.ExpressionPropertyHandler
acceptChange, change, possibleReturnTypes, requiresSourceExprChange, returnType
-
Method Details
-
convert
Description copied from interface:PropertyHandler.ExpressionPropertyHandler
Converts the given object to the property value. This method may return arrays if the property is multi-valued.- Specified by:
convert
in interfacePropertyHandler.ExpressionPropertyHandler<Type,
ValueType> - Parameters:
propertyHolder
- The object to convert.- Returns:
- This thing's value
-
convert
-
convertChangeValue
This method can be used to convert change values to ValueType (or null)- Parameters:
value
- The (unchecked) new value- Throws:
UnsupportedOperationException
-