Class CreditsSection

java.lang.Object
com.thecsdev.betterstats.resource.dto.credits.CreditsSection

public final class CreditsSection extends Object
Represents a section in the "Credits" GUI of this mod, which contains multiple CreditsEntry instances.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final com.mojang.serialization.Codec<CreditsSection>
    Codec instance for serializing and deserializing CreditsSection instances.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CreditsSection(@NotNull net.minecraft.network.chat.Component name, @Nullable net.minecraft.network.chat.Component summary, @NotNull List<CreditsEntry> entries)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final @NotNull List<CreditsEntry>
    A collection of CreditsEntry instances that belong to this section.
    final @NotNull net.minecraft.network.chat.Component
    The user-friendly name of this credits section.
    final @Nullable net.minecraft.network.chat.Component
    A brief summary or description of this credits section.

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<CreditsSection> CODEC
      Codec instance for serializing and deserializing CreditsSection instances.
  • Constructor Details

  • 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

      @NotNull public final @NotNull List<CreditsEntry> getEntries()
      A collection of CreditsEntry instances that belong to this section.