Class CreditsEntry

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

public final class CreditsEntry extends Object
Represents an entity that can be credited in a "Credits" GUI of this mod.
  • Field Summary

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

    Constructors
    Constructor
    Description
    CreditsEntry(@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 Type
    Method
    Description
    boolean
    equals(@Nullable Object obj)
     
    final @Nullable URI
    The URI of the "profile picture" that is associated with the credited entity.
    final @Nullable URI
    The URI of the homepage or main website of the credited entity.
    final @NotNull net.minecraft.network.chat.Component
    User-friendly display name of the credited entity.
    final @Nullable net.minecraft.network.chat.Component
    A short biography or description of the credited entity.
    int
     

    Methods inherited from class Object

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

    • CODEC

      public static final com.mojang.serialization.Codec<CreditsEntry> CODEC
      Codec instance for serializing and deserializing CreditsEntry instances.
  • 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

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable @Nullable Object obj)
      Overrides:
      equals in class Object
    • getAvatarURI

      @Nullable public final @Nullable URI getAvatarURI()
      The URI of the "profile picture" that is associated with the credited entity.
    • 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

      @Nullable public final @Nullable URI getHomepageURI()
      The URI of the homepage or main website of the credited entity.