Interface RegistrationFailedException.ReasonFormatter

All Known Implementing Classes:
RegistrationFailedException.Reason
Enclosing class:
RegistrationFailedException
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface private static interface RegistrationFailedException.ReasonFormatter
Internal interface used to format the error message for a given reason.
  • Method Summary

    Modifier and Type
    Method
    Description
    format(ResourceLocation id, String namespace)
    Creates a nice error message for the given parameters.
  • Method Details

    • format

      String format(ResourceLocation id, String namespace)
      Creates a nice error message for the given parameters.
      Parameters:
      id - The id of the payload that was being registered.
      namespace - The namespace the payload was being registered in.
      Returns:
      A nice error message for the given parameters.