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.
Internal interface used to format the error message for a given reason.
-
Method Summary
Modifier and TypeMethodDescriptionformat
(ResourceLocation id, String namespace) Creates a nice error message for the given parameters.
-
Method Details
-
format
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.
-