Interface VeilResourceAction<T extends VeilResource<?>>

Type Parameters:
T - The type of resource to perform actions on
All Known Implementing Classes:
FramebufferEditAction, ModelInspectAction, OverrideAction, TextEditAction

public interface VeilResourceAction<T extends VeilResource<?>>
Adds an action to the context menu for performing actions on resources.
Since:
1.0.0
  • 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

      void perform(VeilEditorEnvironment environment, T resource)
      Performs the action on the specified resource