9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2026-01-04 15:41:35 +00:00

legacy format support

This commit is contained in:
XiaoMoMi
2023-12-15 04:48:12 +08:00
parent 08bb99ec68
commit a086510826
5 changed files with 30 additions and 4 deletions

View File

@@ -26,6 +26,16 @@ import org.jetbrains.annotations.Nullable;
public interface RequirementManager {
/**
* Legacy format support
* @param key key
* @param requirements requirements
* @param weight weight
* @return success or not
*/
@Deprecated
boolean putLegacyLootToMap(String key, Requirement[] requirements, double weight);
/**
* Registers a custom requirement type with its corresponding factory.
*