Package ch.njol.skript.classes
Interface Converter<F,T>
- Type Parameters:
F
- The accepted type of objects to convert fromT
- The type to convert to
- All Known Implementing Classes:
ChainedConverter
,Getter
,SerializableGetter
Deprecated.
Converts data from type to another.
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
Deprecated.holds information about a converterstatic final class
Deprecated. -
Field Summary
Modifier and TypeFieldDescriptionstatic final int
Deprecated.Disallow all chaining.static final int
Deprecated.static final int
Deprecated.Disallow other converters from being chained to this.static final int
Deprecated.Disallow chaining this with other converters. -
Method Summary
-
Field Details
-
NO_LEFT_CHAINING
static final int NO_LEFT_CHAININGDeprecated.Disallow other converters from being chained to this.- See Also:
-
NO_RIGHT_CHAINING
static final int NO_RIGHT_CHAININGDeprecated.Disallow chaining this with other converters.- See Also:
-
NO_CHAINING
static final int NO_CHAININGDeprecated.Disallow all chaining.- See Also:
-
NO_COMMAND_ARGUMENTS
static final int NO_COMMAND_ARGUMENTSDeprecated.- See Also:
-
-
Method Details
-
convert
Deprecated.Converts an object from the given to the desired type.- Parameters:
f
- The object to convert.- Returns:
- the converted object
-
Converter