Record Class TextEditAction<T extends VeilResource<?>>
java.lang.Object
java.lang.Record
foundry.veil.impl.resource.action.TextEditAction<T>
- All Implemented Interfaces:
VeilResourceAction<T>
public record TextEditAction<T extends VeilResource<?>>()
extends Record
implements VeilResourceAction<T>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.net.minecraft.network.chat.Component
getIcon()
net.minecraft.network.chat.Component
getName()
final int
hashCode()
Returns a hash code value for this object.void
perform
(VeilEditorEnvironment environment, T resource) Performs the action on the specified resourcefinal String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
TextEditAction
public TextEditAction()Creates an instance of aTextEditAction
record class.
-
-
Method Details
-
getName
public net.minecraft.network.chat.Component getName()- Specified by:
getName
in interfaceVeilResourceAction<T extends VeilResource<?>>
- Returns:
- The name of the action
-
getDescription
public net.minecraft.network.chat.Component getDescription()- Specified by:
getDescription
in interfaceVeilResourceAction<T extends VeilResource<?>>
- Returns:
- A brief description of the action
-
getIcon
- Specified by:
getIcon
in interfaceVeilResourceAction<T extends VeilResource<?>>
- Returns:
- The icon to display for the action
-
perform
Description copied from interface:VeilResourceAction
Performs the action on the specified resource- Specified by:
perform
in interfaceVeilResourceAction<T extends VeilResource<?>>
-
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.
-