Class CreditsSection
java.lang.Object
com.thecsdev.betterstats.resource.dto.credits.CreditsSection
Represents a section in the "Credits" GUI of this mod, which
contains multiple
CreditsEntry instances.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<CreditsSection> Codecinstance for serializing and deserializingCreditsSectioninstances. -
Constructor Summary
ConstructorsConstructorDescriptionCreditsSection(@NotNull net.minecraft.network.chat.Component name, @Nullable net.minecraft.network.chat.Component summary, @NotNull List<CreditsEntry> entries) -
Method Summary
Modifier and TypeMethodDescriptionfinal @NotNull List<CreditsEntry> A collection ofCreditsEntryinstances that belong to this section.final @NotNull net.minecraft.network.chat.ComponentgetName()The user-friendly name of this credits section.final @Nullable net.minecraft.network.chat.ComponentA brief summary or description of this credits section.
-
Field Details
-
CODEC
Codecinstance for serializing and deserializingCreditsSectioninstances.
-
-
Constructor Details
-
CreditsSection
public CreditsSection(@NotNull @NotNull net.minecraft.network.chat.Component name, @Nullable @Nullable net.minecraft.network.chat.Component summary, @NotNull @NotNull List<CreditsEntry> entries) throws NullPointerException - Throws:
NullPointerException
-
-
Method Details
-
getName
@NotNull public final @NotNull net.minecraft.network.chat.Component getName()The user-friendly name of this credits section. -
getSummary
@Nullable public final @Nullable net.minecraft.network.chat.Component getSummary()A brief summary or description of this credits section. -
getEntries
A collection ofCreditsEntryinstances that belong to this section.
-