Interface StatFormatterOverride

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface StatFormatterOverride
A functional interface for overriding the vanilla StatFormatter behavior.
See Also:
  • StatFormatter
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull String
    format(@NotNull net.minecraft.stats.StatFormatter vanillaFormatter, int value)
    Formats a Stat's value using a custom formatter.
  • Field Details

  • Method Details

    • format

      @NotNull @NotNull String format(@NotNull @NotNull net.minecraft.stats.StatFormatter vanillaFormatter, int value)
      Formats a Stat's value using a custom formatter.
      Parameters:
      vanillaFormatter - The default vanilla formatter to use as a fallback or base.
      value - The statistic value to format.
      Returns:
      A formatted string representation of the statistic value.