Package foundry.veil.api.resource.type
Record Class FramebufferResource
java.lang.Object
java.lang.Record
foundry.veil.api.resource.type.FramebufferResource
- All Implemented Interfaces:
VeilTextResource<FramebufferResource>
,VeilResource<FramebufferResource>
public record FramebufferResource(VeilResourceInfo resourceInfo)
extends Record
implements VeilTextResource<FramebufferResource>
-
Constructor Summary
ConstructorDescriptionFramebufferResource
(VeilResourceInfo resourceInfo) Creates an instance of aFramebufferResource
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
final boolean
Indicates whether some other object is "equal to" this one.int
Gets the icon code for this resource (ex.final int
hashCode()
Returns a hash code value for this object.void
Hot-reloads the resource@Nullable imgui.extension.texteditor.TextEditorLanguageDefinition
Returns the value of theresourceInfo
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface foundry.veil.api.resource.VeilResource
copyToResources, onFileSystemChange, render
-
Constructor Details
-
FramebufferResource
Creates an instance of aFramebufferResource
record class.- Parameters:
resourceInfo
- the value for theresourceInfo
record component
-
-
Method Details
-
getActions
- Specified by:
getActions
in interfaceVeilResource<FramebufferResource>
- Returns:
- All actions that can be performed on this resource
-
canHotReload
public boolean canHotReload()- Specified by:
canHotReload
in interfaceVeilResource<FramebufferResource>
- Returns:
- If this resource can be hot-reloaded
-
hotReload
public void hotReload()Description copied from interface:VeilResource
Hot-reloads the resource- Specified by:
hotReload
in interfaceVeilResource<FramebufferResource>
-
getIconCode
public int getIconCode()Description copied from interface:VeilResource
Gets the icon code for this resource (ex. 0xED0F)- Specified by:
getIconCode
in interfaceVeilResource<FramebufferResource>
-
languageDefinition
@Nullable public @Nullable imgui.extension.texteditor.TextEditorLanguageDefinition languageDefinition()- Specified by:
languageDefinition
in interfaceVeilTextResource<FramebufferResource>
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
resourceInfo
Returns the value of theresourceInfo
record component.- Specified by:
resourceInfo
in interfaceVeilResource<FramebufferResource>
- Returns:
- the value of the
resourceInfo
record component
-