Package com.ldtteam.structurize.storage
Class StructurePacks.Category
java.lang.Object
com.ldtteam.structurize.storage.StructurePacks.Category
- Enclosing class:
- StructurePacks
The representation of a structure pack category (a folder).
-
Field Summary
FieldsModifier and TypeFieldDescriptionbooleanIf the category has its own icon.booleanIf this is a special "current folder" terminal category.booleanIf the category does not have further sub-categories.The pack meta the category belongs to.The sub-path of the category. -
Constructor Summary
ConstructorsConstructorDescriptionCategory()Create an empty category.Category(StructurePackMeta packMeta, Path subPath, boolean hasIcon, boolean isTerminal, boolean isCurrent) Create a new category. -
Method Summary
-
Field Details
-
packMeta
The pack meta the category belongs to. -
subPath
The sub-path of the category. -
hasIcon
public boolean hasIconIf the category has its own icon. -
isTerminal
public boolean isTerminalIf the category does not have further sub-categories. -
isCurrent
public boolean isCurrentIf this is a special "current folder" terminal category.
-
-
Constructor Details
-
Category
public Category()Create an empty category. -
Category
public Category(StructurePackMeta packMeta, Path subPath, boolean hasIcon, boolean isTerminal, boolean isCurrent) Create a new category.- Parameters:
packMeta- the structure pack it belongs to.subPath- the sub path.hasIcon- if it has an icon.isTerminal- if it's terminal (no further sub-folders).isCurrent- if it's a "current directory" subcategory.
-
-
Method Details