Class InputSource.InputData

java.lang.Object
ch.njol.skript.lang.parser.ParserInstance.Data
ch.njol.skript.lang.InputSource.InputData
Enclosing interface:
InputSource

public static class InputSource.InputData extends ParserInstance.Data
A ParserInstance.Data used for linking InputSources and ExprInputs.
  • Constructor Details

  • Method Details

    • setSource

      public void setSource(@Nullable @Nullable InputSource source)
      InputSource should call this during init() to declare that they are the current source for future ExprInputs, and then reset it to its previous value once out of scope.
      Parameters:
      source - the source of information.
    • getSource

      @Nullable public @Nullable InputSource getSource()
      ExprInput should use this to get the information source, and then call InputSource.getCurrentValue() to get the current value of the source.
      Returns:
      the source of information.