Build stuff into nodes! They may not do anything, but it's node-tastic!
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
package net.minecraft.commands.tree;
|
||||
|
||||
import com.google.common.collect.Lists;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public abstract class CommandNode {
|
||||
private final List<CommandNode> children = Lists.newArrayList();
|
||||
|
||||
public List<CommandNode> getChildren() {
|
||||
return children;
|
||||
}
|
||||
|
||||
public void addChild(CommandNode node) {
|
||||
children.add(node);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user