Skip to content

Commit

Permalink
Version - v1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
ysfchn committed Jun 13, 2020
1 parent 27fbf92 commit 8aaec7d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/com/yusufcihan/DynamicComponents/DynamicComponents.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public YailList UsedIDs() {
Returns the component's itself for setting properties. ID must be a valid ID which is added with Create block.
*/
@SimpleFunction(description = "Returns the component's itself for setting properties. ID must be a valid ID which is added with Create block.")
public Component GetComponent(String id) {
public Object GetComponent(String id) {
return COMPONENTS.get(id);
}

Expand All @@ -200,17 +200,6 @@ public String GetName(Component component) {
return component.getClass().getName().replace(BASE_PACKAGE + ".", "");
}

/*
Removes all created dynamic components. Same as Remove block, but for all created components.
*/
@SimpleFunction(description = "Removes all created dynamic components. Same as Remove block, but for all created components.")
private void RemoveAll() {
Set<String> keys = COMPONENTS.keySet();
for (String key : keys) {
Remove(key);
}
}

/*
Set a property of a component by typing its name.
*/
Expand Down

0 comments on commit 8aaec7d

Please sign in to comment.