Record Class Contributor
java.lang.Object
java.lang.Record
com.wildfire.client.contributors.Contributor
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionContributor(String name, Contributor.Role role, boolean showInCredits) Creates an instance of aContributorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentasText()final booleanIndicates whether some other object is "equal to" this one.net.minecraft.network.chat.TextColorgetColor()final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.role()Returns the value of therolerecord component.booleanReturns the value of theshowInCreditsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Contributor
Creates an instance of aContributorrecord class.- Parameters:
name- the value for thenamerecord componentrole- the value for therolerecord componentshowInCredits- the value for theshowInCreditsrecord component
-
-
Method Details
-
getColor
public net.minecraft.network.chat.TextColor getColor() -
asText
public net.minecraft.network.chat.Component asText() -
toString
-
hashCode
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
showInCredits
public boolean showInCredits()Returns the value of theshowInCreditsrecord component.- Returns:
- the value of the
showInCreditsrecord component
-