Package net.mcreator.workspace.elements
Class FolderElement
java.lang.Object
net.mcreator.workspace.elements.FolderElement
- All Implemented Interfaces:
IElement
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(FolderElement child) boolean
static FolderElement
findFolderByPath
(Workspace workspace, String path) getName()
getPath()
Used to determine all folders from the root element down, when called on the root elementint
hashCode()
boolean
isRoot()
void
moveTo
(Workspace workspace, FolderElement newParent) void
removeChild
(FolderElement child) void
setChildren
(Collection<FolderElement> children) void
toString()
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
-