Package foundry.veil.api.resource.type
Record Class VeilShaderIncludeResource
java.lang.Object
java.lang.Record
foundry.veil.api.resource.type.VeilShaderIncludeResource
- All Implemented Interfaces:
VeilShaderResource<VeilShaderIncludeResource>
,VeilTextResource<VeilShaderIncludeResource>
,VeilResource<VeilShaderIncludeResource>
public record VeilShaderIncludeResource(VeilResourceInfo resourceInfo)
extends Record
implements VeilShaderResource<VeilShaderIncludeResource>
-
Constructor Summary
ConstructorDescriptionVeilShaderIncludeResource
(VeilResourceInfo resourceInfo) Creates an instance of aVeilShaderIncludeResource
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.void
Hot-reloads the resourceReturns 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
Methods inherited from interface foundry.veil.api.resource.type.VeilShaderResource
getIconCode, languageDefinition
-
Constructor Details
-
VeilShaderIncludeResource
Creates an instance of aVeilShaderIncludeResource
record class.- Parameters:
resourceInfo
- the value for theresourceInfo
record component
-
-
Method Details
-
getActions
- Specified by:
getActions
in interfaceVeilResource<VeilShaderIncludeResource>
- Returns:
- All actions that can be performed on this resource
-
canHotReload
public boolean canHotReload()- Specified by:
canHotReload
in interfaceVeilResource<VeilShaderIncludeResource>
- 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<VeilShaderIncludeResource>
-
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<VeilShaderIncludeResource>
- Returns:
- the value of the
resourceInfo
record component
-