9
0
mirror of https://github.com/Xiao-MoMi/Custom-Fishing.git synced 2025-12-29 03:49:07 +00:00

fish finder

This commit is contained in:
XiaoMoMi
2023-09-10 18:59:24 +08:00
parent 4741e383a1
commit 54da6fe236
32 changed files with 330 additions and 132 deletions

View File

@@ -18,6 +18,7 @@
package net.momirealms.customfishing.api.manager;
import net.momirealms.customfishing.api.mechanic.TempFishingState;
import net.momirealms.customfishing.api.mechanic.condition.Condition;
import net.momirealms.customfishing.api.mechanic.condition.FishingPreparation;
import net.momirealms.customfishing.api.mechanic.effect.Effect;
import net.momirealms.customfishing.api.mechanic.game.GameInstance;
@@ -46,11 +47,11 @@ public interface FishingManager {
void processGameResult(GamingPlayer gamingPlayer);
Collection<String> getPossibleLootKeys(FishingPreparation fishingPreparation);
Collection<String> getPossibleLootKeys(Condition condition);
@NotNull Map<String, Double> getPossibleLootKeysWithWeight(Effect initialEffect, FishingPreparation fishingPreparation);
@NotNull Map<String, Double> getPossibleLootKeysWithWeight(Effect initialEffect, Condition condition);
Loot getNextLoot(Effect initialEffect, FishingPreparation fishingPreparation);
Loot getNextLoot(Effect initialEffect, Condition condition);
void startFishingGame(Player player, Loot loot, Effect effect);

View File

@@ -25,5 +25,6 @@ public enum ActionTrigger {
CONSUME,
CAST,
BITE,
LAND
LAND,
INTERACT
}

View File

@@ -82,4 +82,8 @@ public class Condition {
public void insertArg(String key, String value) {
args.put(key, value);
}
public String delArg(String key) {
return args.remove(key);
}
}