Class CategoryRegistry
java.lang.Object
com.soulfiremc.server.script.CategoryRegistry
Registry of all available node categories.
Provides predefined categories and lookup methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final NodeCategorystatic final NodeCategorystatic final NodeCategorystatic final NodeCategorystatic final NodeCategorystatic final NodeCategorystatic final NodeCategorystatic final NodeCategorystatic final NodeCategorystatic final NodeCategorystatic final NodeCategorystatic final NodeCategorystatic final NodeCategorystatic final NodeCategorystatic final NodeCategorystatic final NodeCategorystatic final NodeCategory -
Method Summary
Modifier and TypeMethodDescriptionstatic List<NodeCategory> Gets all registered categories sorted by sort order.static NodeCategoryGets a category by its ID, or UTILITY as fallback.static intGets the number of registered categories.static booleanisRegistered(String id) Checks if a category is registered.static NodeCategoryregister(NodeCategory category) Registers a category.
-
Field Details
-
TRIGGERS
-
ACTIONS
-
DATA
-
FLOW
-
LOGIC
-
MATH
-
STRING
-
LIST
-
CONSTANTS
-
UTILITY
-
NETWORK
-
AI
-
JSON
-
ENCODING
-
STATE
-
INTEGRATION
-
VARIABLE
-
-
Method Details
-
register
Registers a category.- Parameters:
category- the category to register- Returns:
- the registered category (for chaining)
-
fromId
Gets a category by its ID, or UTILITY as fallback.- Parameters:
id- the category ID- Returns:
- the category, or UTILITY if not found
-
isRegistered
Checks if a category is registered.- Parameters:
id- the category ID- Returns:
- true if the category is registered
-
allSorted
Gets all registered categories sorted by sort order.- Returns:
- sorted list of all categories
-
getRegisteredCount
public static int getRegisteredCount()Gets the number of registered categories.- Returns:
- the count of registered categories
-