Record Class OverrideAction<T extends VeilResource<T>>
java.lang.Object
java.lang.Record
foundry.veil.impl.resource.action.OverrideAction<T>
- All Implemented Interfaces:
VeilResourceAction<T>
public record OverrideAction<T extends VeilResource<T>>()
extends Record
implements VeilResourceAction<T>
-
Constructor Summary
Constructors -
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
-
OverrideAction
public OverrideAction()Creates an instance of aOverrideActionrecord class.
-
-
Method Details
-
getName
public net.minecraft.network.chat.Component getName()- Specified by:
getNamein interfaceVeilResourceAction<T extends VeilResource<T>>- Returns:
- The name of the action
-
getDescription
public net.minecraft.network.chat.Component getDescription()- Specified by:
getDescriptionin interfaceVeilResourceAction<T extends VeilResource<T>>- Returns:
- A brief description of the action
-
getIcon
- Specified by:
getIconin interfaceVeilResourceAction<T extends VeilResource<T>>- 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 VeilResource<T>>
-
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.
-