Package xyz.srnyx.annoyingapi.message
Interface ReplaceType
- All Known Implementing Classes:
DefaultReplaceType
public interface ReplaceType
Used in
AnnoyingMessage.replace(String, Object, ReplaceType)
Implement this into your own enum to create your own ReplaceTypes for AnnoyingMessage.replace(String, Object, ReplaceType)
- See Also:
-
Method Summary
Modifier and TypeMethodDescription@NotNull StringIf no input is provided, this will be used@NotNull BinaryOperator<String> The action done with the input and value
-
Method Details
-
getDefaultInput
If no input is provided, this will be used- Returns:
- the default input
-
getOutputOperator
The action done with the input and valueThe input comes first, then the value (for the operands)
- Returns:
- the
BinaryOperatorto use on the input and value
-