Package foundry.veil.api.resource
Interface VeilResourceAction<T extends VeilResource<?>>
- Type Parameters:
T- The type of resource to perform actions on
- All Known Implementing Classes:
FramebufferEditAction,ModelInspectAction,OverrideAction,ShellInspectAction,TemplateInspectAction,TextEditAction
public interface VeilResourceAction<T extends VeilResource<?>>
Adds an action to the context menu for performing actions on resources.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentgetIcon()net.minecraft.network.chat.ComponentgetName()voidperform(VeilEditorEnvironment environment, T resource) Performs the action on the specified resource
-
Method Details
-
getName
net.minecraft.network.chat.Component getName()- Returns:
- The name of the action
-
getDescription
net.minecraft.network.chat.Component getDescription()- Returns:
- A brief description of the action
-
getIcon
OptionalInt getIcon()- Returns:
- The icon to display for the action
-
perform
Performs the action on the specified resource
-