feat(gui): set access modifier of getChildren of Parent to protected
@@ -6,9 +6,7 @@ import com.github.mouse0w0.observable.value.ObservableValue;
import com.github.mouse0w0.observable.value.ValueChangeListener;
import nullengine.client.gui.util.Utils;
-import java.util.ArrayList;
import java.util.LinkedList;
-import java.util.List;
public abstract class Parent extends Node {
@@ -42,7 +40,7 @@ public abstract class Parent extends Node {
});
}
- public ObservableList<Node> getChildren() {
+ protected ObservableList<Node> getChildren() {
return children;
}
@@ -50,17 +48,6 @@ public abstract class Parent extends Node {
return unmodifiableChildren;
}
- public final List<Node> getChildrenRecursive() {
- var list = new ArrayList<Node>();
- for (Node child : children) {
- if (child instanceof Parent) {
- list.addAll(((Parent) child).getChildrenRecursive());
- }
- list.add(child);
- }
- return list;
- }
-
@Override
public float prefWidth() {
float minX = 0, maxX = 0;
