Package xyz.srnyx.annoyingapi.message
Interface ReplaceType
-
- All Known Implementing Classes:
DefaultReplaceType
public interface ReplaceTypeUsed inAnnoyingMessage.replace(String, Object, ReplaceType)Implement this into your own enum to create your own
ReplaceTypes forAnnoyingMessage.replace(String, Object, ReplaceType)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull java.lang.StringgetDefaultInput()If no input is provided, this will be used@NotNull java.util.function.BinaryOperator<java.lang.String>getOutputOperator()The action done with the input and value
-
-
-
Method Detail
-
getDefaultInput
@NotNull @NotNull java.lang.String getDefaultInput()
If no input is provided, this will be used- Returns:
- the default input
-
getOutputOperator
@NotNull @NotNull java.util.function.BinaryOperator<java.lang.String> 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
-
-