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

2.0-backup-3

This commit is contained in:
XiaoMoMi
2023-09-03 03:11:21 +08:00
parent 637d38013d
commit b73dd6cf51
22 changed files with 411 additions and 3457 deletions

View File

@@ -6,8 +6,10 @@ import net.momirealms.customfishing.api.mechanic.game.Game;
import net.momirealms.customfishing.api.mechanic.game.GameSettings;
import net.momirealms.customfishing.api.mechanic.game.GamingPlayer;
import net.momirealms.customfishing.api.mechanic.loot.Loot;
import org.bukkit.entity.FishHook;
import org.bukkit.entity.Player;
import java.util.Optional;
import java.util.UUID;
public interface FishingManager {
@@ -17,6 +19,8 @@ public interface FishingManager {
void removeHookCheckTask(Player player);
Optional<FishHook> getHook(UUID uuid);
void removeTempFishingState(Player player);
void processGameResult(GamingPlayer gamingPlayer);

View File

@@ -54,6 +54,11 @@ public abstract class AbstractGamingPlayer implements GamingPlayer, Runnable {
return false;
}
@Override
public boolean onChat(String message) {
return false;
}
@Override
public boolean onSwapHand() {
return false;

View File

@@ -1,5 +1,6 @@
package net.momirealms.customfishing.api.mechanic.game;
import net.kyori.adventure.text.Component;
import net.momirealms.customfishing.api.mechanic.effect.Effect;
import org.bukkit.entity.Player;
@@ -20,4 +21,6 @@ public interface GamingPlayer {
Player getPlayer();
Effect getEffectReward();
boolean onChat(String message);
}

View File

@@ -4,7 +4,7 @@ import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.InventoryHolder;
import org.jetbrains.annotations.NotNull;
public class MarketGUI implements InventoryHolder {
public class MarketGUIHolder implements InventoryHolder {
private Inventory inventory;