Record Class Contributor
java.lang.Object
java.lang.Record
com.wildfire.client.contributors.Contributor
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionContributor(int roles, @Nullable net.minecraft.network.chat.TextColor color, @Nullable String name, boolean showInCredits) Creates an instance of aContributorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.network.chat.ComponentasText()@Nullable net.minecraft.network.chat.TextColorcolor()Returns the value of thecolorrecord component.final booleanIndicates whether some other object is "equal to" this one.net.minecraft.network.chat.TextColorgetColor()getRole()final inthashCode()Returns a hash code value for this object.@Nullable Stringname()Returns the value of thenamerecord component.introles()Returns the value of therolesrecord component.booleanReturns the value of theshowInCreditsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Contributor
public Contributor(int roles, @Nullable net.minecraft.network.chat.TextColor color, @Nullable String name, boolean showInCredits) Creates an instance of aContributorrecord class.- Parameters:
roles- the value for therolesrecord componentcolor- the value for thecolorrecord componentname- the value for thenamerecord componentshowInCredits- the value for theshowInCreditsrecord component
-
-
Method Details
-
getColor
public net.minecraft.network.chat.TextColor getColor() -
asText
public net.minecraft.network.chat.Component asText() -
getRole
-
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. -
roles
public int roles()Returns the value of therolesrecord component.- Returns:
- the value of the
rolesrecord component
-
color
public @Nullable net.minecraft.network.chat.TextColor color()Returns the value of thecolorrecord component.- Returns:
- the value of the
colorrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
showInCredits
public boolean showInCredits()Returns the value of theshowInCreditsrecord component.- Returns:
- the value of the
showInCreditsrecord component
-