Package net.mcreator.workspace.elements
Class FolderElement
java.lang.Object
net.mcreator.workspace.elements.FolderElement
- All Implemented Interfaces:
IElement
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(FolderElement child) booleanstatic FolderElementfindFolderByPath(Workspace workspace, String path) getName()getPath()Used to determine all folders from the root element down, when called on the root elementinthashCode()booleanisRoot()voidmoveTo(Workspace workspace, FolderElement newParent) voidremoveChild(FolderElement child) voidsetChildren(Collection<FolderElement> children) voidtoString()void
-
Field Details
-
ROOT
-
children
-
-
Constructor Details
-
FolderElement
-
-
Method Details
-
updateStructure
public void updateStructure() -
addChild
-
removeChild
-
setChildren
-
getDirectFolderChildren
-
getRecursiveFolderChildren
Used to determine all folders from the root element down, when called on the root element- Returns:
- List of all children
-
moveTo
-
setName
-
isRoot
public boolean isRoot() -
getParent
-
getPath
-
getName
-
toString
-
equals
-
hashCode
public int hashCode() -
findFolderByPath
-