Record Class TemplateInspectAction<T extends FlareResource>
java.lang.Object
java.lang.Record
foundry.veil.impl.resource.action.TemplateInspectAction<T>
- All Implemented Interfaces:
VeilResourceAction<T>
public record TemplateInspectAction<T extends FlareResource>()
extends Record
implements VeilResourceAction<T>
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aTemplateInspectActionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.net.minecraft.network.chat.ComponentgetIcon()net.minecraft.network.chat.ComponentgetName()final inthashCode()Returns a hash code value for this object.voidperform(VeilEditorEnvironment environment, T resource) Performs the action on the specified resourcefinal StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TemplateInspectAction
public TemplateInspectAction()Creates an instance of aTemplateInspectActionrecord class.
-
-
Method Details
-
getName
public net.minecraft.network.chat.Component getName()- Specified by:
getNamein interfaceVeilResourceAction<T extends FlareResource>- Returns:
- The name of the action
-
getDescription
public net.minecraft.network.chat.Component getDescription()- Specified by:
getDescriptionin interfaceVeilResourceAction<T extends FlareResource>- Returns:
- A brief description of the action
-
getIcon
- Specified by:
getIconin interfaceVeilResourceAction<T extends FlareResource>- Returns:
- The icon to display for the action
-
perform
Description copied from interface:VeilResourceActionPerforms the action on the specified resource- Specified by:
performin interfaceVeilResourceAction<T extends FlareResource>
-
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.
-