9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-30 04:19:30 +00:00

improve api

This commit is contained in:
XiaoMoMi
2023-12-26 16:35:43 +08:00
parent db722484af
commit 4c1eeda61f
7 changed files with 50 additions and 10 deletions

View File

@@ -81,4 +81,20 @@ public interface PlaceholderManager {
* @return The list of text strings with placeholders replaced by their values.
*/
List<String> parse(@Nullable OfflinePlayer player, List<String> list, Map<String, String> replacements);
/**
* Get an expression's value
* @param player player
* @param formula formula
* @param vars vars
* @return result
*/
double getExpressionValue(Player player, String formula, Map<String, String> vars);
/**
* Get an expression's value
* @param formula formula
* @return result
*/
double getExpressionValue(String formula);
}