Package foundry.veil.api.resource.editor
Class ResourceOverrideEditor
java.lang.Object
foundry.veil.api.resource.editor.ResourceOverrideEditor
- All Implemented Interfaces:
ResourceFileEditor<VeilResource<?>>
,Closeable
,AutoCloseable
-
Nested Class Summary
Nested classes/interfaces inherited from interface foundry.veil.api.resource.editor.ResourceFileEditor
ResourceFileEditor.Factory<T extends VeilResource<?>>
-
Constructor Summary
ConstructorDescriptionResourceOverrideEditor
(VeilEditorEnvironment environment, VeilResource<?> veilResource) -
Method Summary
Modifier and TypeMethodDescriptionVeilResource
<?> boolean
isClosed()
void
Called to update the editor status from disk.void
render()
Renders this editor to the screen.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface foundry.veil.api.resource.editor.ResourceFileEditor
close, save, save
-
Constructor Details
-
ResourceOverrideEditor
-
-
Method Details
-
render
public void render()Description copied from interface:ResourceFileEditor
Renders this editor to the screen.- Specified by:
render
in interfaceResourceFileEditor<VeilResource<?>>
-
loadFromDisk
public void loadFromDisk()Description copied from interface:ResourceFileEditor
Called to update the editor status from disk.- Specified by:
loadFromDisk
in interfaceResourceFileEditor<VeilResource<?>>
-
isClosed
public boolean isClosed()- Specified by:
isClosed
in interfaceResourceFileEditor<VeilResource<?>>
- Returns:
- Whether this editor is closed
-
getResource
- Specified by:
getResource
in interfaceResourceFileEditor<VeilResource<?>>
- Returns:
- The resource being edited
-