Package foundry.veil.api.resource.type
Record Class VeilShaderDefinitionResource
java.lang.Object
java.lang.Record
foundry.veil.api.resource.type.VeilShaderDefinitionResource
- All Implemented Interfaces:
VeilShaderResource<VeilShaderDefinitionResource>
,VeilTextResource<VeilShaderDefinitionResource>
,VeilResource<VeilShaderDefinitionResource>
public record VeilShaderDefinitionResource(VeilResourceInfo resourceInfo, ShaderManager shaderManager)
extends Record
implements VeilShaderResource<VeilShaderDefinitionResource>
-
Constructor Summary
ConstructorDescriptionVeilShaderDefinitionResource
(VeilResourceInfo resourceInfo, ShaderManager shaderManager) Creates an instance of aVeilShaderDefinitionResource
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.Returns the value of theshaderManager
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
-
VeilShaderDefinitionResource
Creates an instance of aVeilShaderDefinitionResource
record class.- Parameters:
resourceInfo
- the value for theresourceInfo
record componentshaderManager
- the value for theshaderManager
record component
-
-
Method Details
-
getActions
- Specified by:
getActions
in interfaceVeilResource<VeilShaderDefinitionResource>
- Returns:
- All actions that can be performed on this resource
-
canHotReload
public boolean canHotReload()- Specified by:
canHotReload
in interfaceVeilResource<VeilShaderDefinitionResource>
- 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<VeilShaderDefinitionResource>
-
getIconCode
public int getIconCode()Description copied from interface:VeilResource
Gets the icon code for this resource (ex. 0xED0F)- Specified by:
getIconCode
in interfaceVeilResource<VeilShaderDefinitionResource>
- Specified by:
getIconCode
in interfaceVeilShaderResource<VeilShaderDefinitionResource>
-
languageDefinition
@Nullable public @Nullable imgui.extension.texteditor.TextEditorLanguageDefinition languageDefinition()- Specified by:
languageDefinition
in interfaceVeilShaderResource<VeilShaderDefinitionResource>
- Specified by:
languageDefinition
in interfaceVeilTextResource<VeilShaderDefinitionResource>
-
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<VeilShaderDefinitionResource>
- Returns:
- the value of the
resourceInfo
record component
-
shaderManager
Returns the value of theshaderManager
record component.- Returns:
- the value of the
shaderManager
record component
-