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
-
Method Summary
Modifier and TypeMethodDescription@Nullable InputSource
ExprInput should use this to get the information source, and then callInputSource.getCurrentValue()
to get the current value of the source.void
setSource
(@Nullable InputSource source) InputSource
should call this during init() to declare that they are the current source for futureExprInput
s, 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
InputSource
should call this during init() to declare that they are the current source for futureExprInput
s, 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.
-