Package foundry.veil.api.resource.editor
Interface ResourceFileEditor<T extends VeilResource<?>>
- All Known Implementing Classes:
FramebufferFileEditor
,TextFileEditor
public interface ResourceFileEditor<T extends VeilResource<?>>
-
Method Summary
Modifier and TypeMethodDescriptionvoid
open
(VeilEditorEnvironment environment, T resource) Opens the specified resource in the environment.void
render()
Renders this editor to the screen.default void
save
(byte[] data, VeilResource<?> resource) Saves the specified data to the specified resource and hot reloads it.
-
Method Details
-
render
void render()Renders this editor to the screen. -
open
Opens the specified resource in the environment.- Parameters:
environment
- The environment to open the resource inresource
- The resource to open
-
save
Saves the specified data to the specified resource and hot reloads it.- Parameters:
data
- The data to write to the resource fileresource
- The resource to write to
-