Package foundry.veil.api.resource
Interface VeilEditorEnvironment
- All Known Implementing Classes:
EditorManager
public interface VeilEditorEnvironment
An environment where files can be opened, edited, and managed.
- Since:
- 1.0.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
open
(VeilResource<?> resource, net.minecraft.resources.ResourceLocation editorName) Opens the specified resource in the specified editor.<T extends VeilResource<?>>
voidopen
(T resource, ResourceFileEditor.Factory<T> editor) Opens the specified resource in the specified editor.
-
Method Details
-
open
Opens the specified resource in the specified editor.- Type Parameters:
T
- The type of resource opened- Parameters:
resource
- The resource to openeditor
- The editor to use
-
open
Opens the specified resource in the specified editor.- Parameters:
resource
- The resource to openeditorName
- The name of the editor to open
-
getResourceManager
VeilResourceManager getResourceManager()- Returns:
- The resource manager instance
-