Package ch.njol.skript.lang
Class InputSource.InputData
java.lang.Object
ch.njol.skript.lang.parser.ParserInstance.Data
ch.njol.skript.lang.InputSource.InputData
- Enclosing interface:
InputSource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable InputSourceExprInput should use this to get the information source, and then callInputSource.getCurrentValue()to get the current value of the source.voidsetSource(@Nullable InputSource source) InputSourceshould call this during init() to declare that they are the current source for futureExprInputs, and then reset it to its previous value once out of scope.Methods inherited from class ch.njol.skript.lang.parser.ParserInstance.Data
getParser, onCurrentEventsChange, onCurrentScriptChange
-
Constructor Details
-
InputData
-
-
Method Details
-
setSource
InputSourceshould call this during init() to declare that they are the current source for futureExprInputs, and then reset it to its previous value once out of scope.- Parameters:
source- the source of information.
-
getSource
ExprInput should use this to get the information source, and then callInputSource.getCurrentValue()to get the current value of the source.- Returns:
- the source of information.
-