Record Class Branding
java.lang.Object
java.lang.Record
net.neoforged.moddevgradle.internal.Branding
- Record Components:
publicTaskGroup- Use this group for tasks that are considered to be part of the user-interface of MDG.internalTaskGroup- Use this group for tasks that are considered to be an implementation detail of MDG.
Used to customize the groups of tasks generated by MDG.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinternalTaskGrouprecord component.Returns the value of thepublicTaskGrouprecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
MDG
-
NEODEV
-
-
Constructor Details
-
Branding
Creates an instance of aBrandingrecord class.- Parameters:
publicTaskGroup- the value for thepublicTaskGrouprecord componentinternalTaskGroup- the value for theinternalTaskGrouprecord component
-
-
Method Details
-
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). -
publicTaskGroup
Returns the value of thepublicTaskGrouprecord component.- Returns:
- the value of the
publicTaskGrouprecord component
-
internalTaskGroup
Returns the value of theinternalTaskGrouprecord component.- Returns:
- the value of the
internalTaskGrouprecord component
-