Class VariableMap
java.lang.Object
io.github.syst3ms.skriptparser.variables.VariableMap
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidClears all variablesgetVariable(String name) Returns the internal value of the requested variable.voidsetVariable(String name, @Nullable Object value) Sets a variable.
-
Constructor Details
-
VariableMap
public VariableMap()
-
-
Method Details
-
getVariable
Returns the internal value of the requested variable.Do not modify the returned value!
- Parameters:
name- name of the variable- Returns:
- an Object for a normal Variable or a Mapinvalid input: '<'String, Object> for a list variable, or null if the variable is not set.
-
setVariable
-
clearVariables
public void clearVariables()Clears all variables
-