Interface MinecraftExceptionHandler.MessageFactory<C,T extends Throwable>
- Enclosing class:
MinecraftExceptionHandler<C>
- 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 static interface MinecraftExceptionHandler.MessageFactory<C,T extends Throwable>
-
Method Summary
Modifier and TypeMethodDescriptionmessage(@NonNull ComponentCaptionFormatter<C> formatter, @NonNull ExceptionContext<C, T> exceptionContext) Formats the exception info into aComponentmessage, ornullto send no message.
-
Method Details
-
message
@Nullable ComponentLike message(@NonNull ComponentCaptionFormatter<C> formatter, @NonNull ExceptionContext<C, T> exceptionContext) Formats the exception info into aComponentmessage, ornullto send no message.- Parameters:
formatter- formatter to create components withexceptionContext- exception context- Returns:
- message or
null
-