Package foundry.veil.api.resource
Interface VeilResourceAction<T extends VeilResource<?>>
- All Known Implementing Classes:
FramebufferEditAction
,TextEditAction
public interface VeilResourceAction<T extends VeilResource<?>>
-
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.Component
getIcon()
net.minecraft.network.chat.Component
getName()
void
perform
(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
-