Trying to register an action with the UI? You may be looking for @Register.usableActions
Registers a "usable" action placeholder type. This is solely used for generating an ID that can be used in UsableActions.
A custom UsableActionTypePlaceholder provides an ID that can be used for icons.
IE: If a UsableAction definition's icon property is this placeholder ID's name, it will automatically attempt to use the icon at
<your mod directory>/static/image/ui/icons/action/mod<your mod name><this registration name>.png.
Trying to register an action with the UI? You may be looking for
@Register.
usableActionsRegisters a "usable" action placeholder type. This is solely used for generating an ID that can be used in
UsableAction
s. A custom UsableActionTypePlaceholder provides an ID that can be used for icons.IE: If a UsableAction definition's
icon
property is this placeholder ID's name, it will automatically attempt to use the icon at<your mod directory>/static/image/ui/icons/action/mod<your mod name><this registration name>.png
.