Slim down CommandParts API

- Remove all methods that aren't constructors / fancy get() on list; almost possible to remove class entirely
This commit is contained in:
ljacqu
2015-12-04 23:47:48 +01:00
parent 2faad44ffa
commit 8eb1b38d21
8 changed files with 47 additions and 81 deletions
@@ -211,8 +211,9 @@ public class CommandDescription {
List<String> referenceList = new ArrayList<>();
// Check whether this command has a parent, if so, add the absolute parent command
if (getParent() != null)
if (getParent() != null) {
referenceList.addAll(getParent().getCommandReference(reference).getList());
}
// Get the current label
referenceList.add(getLabel(reference));