Class CreditsEntry
java.lang.Object
com.thecsdev.betterstats.resource.dto.credits.CreditsEntry
Represents an entity that can be credited in a "Credits" GUI of this mod.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CreditsEntry> Codecinstance for serializing and deserializingCreditsEntryinstances. -
Constructor Summary
ConstructorsConstructorDescriptionCreditsEntry(@Nullable URI avatar_uri, @NotNull net.minecraft.network.chat.Component name, @Nullable net.minecraft.network.chat.Component summary, @Nullable URI homepage_uri) -
Method Summary
Modifier and TypeMethodDescriptionbooleanfinal @Nullable URITheURIof the "profile picture" that is associated with the credited entity.final @Nullable URITheURIof the homepage or main website of the credited entity.final @NotNull net.minecraft.network.chat.ComponentgetName()User-friendly display name of the credited entity.final @Nullable net.minecraft.network.chat.ComponentA short biography or description of the credited entity.inthashCode()
-
Field Details
-
CODEC
Codecinstance for serializing and deserializingCreditsEntryinstances.
-
-
Constructor Details
-
CreditsEntry
public CreditsEntry(@Nullable @Nullable URI avatar_uri, @NotNull @NotNull net.minecraft.network.chat.Component name, @Nullable @Nullable net.minecraft.network.chat.Component summary, @Nullable @Nullable URI homepage_uri) throws NullPointerException - Throws:
NullPointerException
-
-
Method Details
-
hashCode
-
equals
-
getAvatarURI
-
getName
@NotNull public final @NotNull net.minecraft.network.chat.Component getName()User-friendly display name of the credited entity. -
getSummary
@Nullable public final @Nullable net.minecraft.network.chat.Component getSummary()A short biography or description of the credited entity. -
getHomepageURI
-