Package ch.njol.skript.lang
Interface InputSource
public interface InputSource
An InputSource represents a syntax that can provide a
value for
ExprInput to use.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class -
Method Summary
Modifier and TypeMethodDescriptiondefault @UnknownNullability StringThis should only be used byInputSources that return true forhasIndices().@Nullable ObjectSet<ch.njol.skript.expressions.ExprInput<?>> default booleanInputSources that can supply indices along with values should override this method to indicate their ability.
-
Method Details
-
getDependentInputs
Set<ch.njol.skript.expressions.ExprInput<?>> getDependentInputs()- Returns:
- A mutable
SetofExprInputs that depend on this source.
-
getCurrentValue
- Returns:
- The current value that
ExprInputshould use.
-
hasIndices
default boolean hasIndices()InputSources that can supply indices along with values should override this method to indicate their ability.- Returns:
- Whether this source can return indices.
-
getCurrentIndex
This should only be used byInputSources that return true forhasIndices().- Returns:
- The current value's index.
-