Class VariableLink
java.lang.Object
ua.mcchickenstudio.opencreative.coding.variables.VariableLink
VariableLink
This class represents a link to existing or not existing world variable. Links, as variables, have specified name and id. It's used for searching and getting variables values.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionVariableLink(@NotNull String name, @NotNull VariableLink.VariableType type) Creates instance of variable link. -
Method Summary
Modifier and TypeMethodDescription@NotNull StringgetName()Returns name of variable.@NotNull VariableLink.VariableTypeReturns type of variable (local, global, saved).toString()
-
Constructor Details
-
VariableLink
public VariableLink(@NotNull @NotNull String name, @NotNull @NotNull VariableLink.VariableType type) Creates instance of variable link.- Parameters:
name- name of variable.type- type of variable (local, global, saved).
-
-
Method Details
-
getVariableType
Returns type of variable (local, global, saved).- Returns:
- type of variable.
-
getName
-
toString
-