Package ch.njol.skript.lang
Interface KeyReceiverExpression<T>
- All Superinterfaces:
Debuggable
,Expression<T>
,Loopable<T>
,SyntaxElement
- All Known Implementing Classes:
Variable
Represents an expression that is able to accept a set of keys linked to values
during the
Changer.ChangeMode.SET
Changer
.- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
change
(org.bukkit.event.Event event, Object @NotNull [] delta, Changer.ChangeMode mode, @NotNull String @NotNull [] keys) An alternative changer method that provides a set of keys as well as a set of values.Methods inherited from interface ch.njol.skript.lang.Debuggable
toString, toString
Methods inherited from interface ch.njol.skript.lang.Expression
acceptChange, beforeChange, canBeSingle, canReturn, change, changeInPlace, changeInPlace, check, check, getAcceptedChangeModes, getAll, getAnd, getArray, getConvertedExpression, getOptionalSingle, getReturnType, getSingle, getSource, getSyntaxTypeName, getTime, isDefault, isSingle, possibleReturnTypes, setTime, simplify, stream
Methods inherited from interface ch.njol.skript.lang.Loopable
isLoopOf, iterator, supportsLoopPeeking
Methods inherited from interface ch.njol.skript.lang.SyntaxElement
getParser, init
-
Method Details
-
change
void change(org.bukkit.event.Event event, Object @NotNull [] delta, Changer.ChangeMode mode, @NotNull @NotNull String @NotNull [] keys) An alternative changer method that provides a set of keys as well as a set of values. This is only ever called forChanger.ChangeMode.supportsKeyedChange()
safe change modes, where a set of values is provided. (This will never be called for valuelessChanger.ChangeMode.DELETE
orChanger.ChangeMode.RESET
changers, for example.)- Parameters:
event
- The current event contextdelta
- The change valuesmode
- The key-safe change modeChanger.ChangeMode.SET
keys
- The keys, matching the length and order of the values array
-