Class McbsFile

java.lang.Object
com.thecsdev.betterstats.api.mcbs.model.McbsFile

public final class McbsFile extends Object
This Class serves as the main MVC data structure for storing and managing all statistics associated with a specific player.
  • Field Details

    • CODEC

      public static final com.mojang.serialization.Codec<McbsFile> CODEC
      Codec implementation for McbsFile.
  • Constructor Details

    • McbsFile

      public McbsFile()
  • Method Details

    • getStats

      @NotNull public final @NotNull McbsStats getStats()
      Returns the McbsStats that holds statistics values.
    • getGoals

      @NotNull public final @NotNull Map<net.minecraft.resources.Identifier, McbsGoal> getGoals()
      Returns the McbsGoals associated with this McbsFile.

      Note that map keys are generally arbitrary Identifiers assigned to goals as they are created and added here. The Identifier keys may be whatever you like them to be.

    • reloadFrom

      public final void reloadFrom(@NotNull @NotNull McbsFile mcbsFile) throws NullPointerException
      This method completely replaces all the data in this McbsFile with data copied from the provided McbsFile.
      Throws:
      NullPointerException