mirror of
https://github.com/Xiao-MoMi/Custom-Fishing.git
synced 2025-12-29 11:59:11 +00:00
2.0-backup-5
This commit is contained in:
@@ -17,6 +17,9 @@
|
||||
|
||||
package net.momirealms.customfishing.api.data;
|
||||
|
||||
import net.momirealms.customfishing.api.data.user.OnlineUser;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.Optional;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.CompletableFuture;
|
||||
@@ -30,5 +33,7 @@ public interface DataStorageInterface {
|
||||
|
||||
CompletableFuture<Optional<PlayerData>> getPlayerData(UUID uuid, boolean force);
|
||||
|
||||
CompletableFuture<Boolean> setPlayData(UUID uuid, PlayerData playerData, boolean unlock);
|
||||
CompletableFuture<Boolean> setPlayerData(UUID uuid, PlayerData playerData, boolean unlock);
|
||||
|
||||
void setPlayersData(Collection<OnlineUser> users, boolean unlock);
|
||||
}
|
||||
|
||||
@@ -68,6 +68,7 @@ public class LavaFishingEvent extends PlayerEvent implements Cancellable {
|
||||
|
||||
public enum State {
|
||||
REEL_IN,
|
||||
CAUGHT_FISH, BITE
|
||||
CAUGHT_FISH,
|
||||
BITE
|
||||
}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ package net.momirealms.customfishing.api.manager;
|
||||
|
||||
import net.momirealms.customfishing.api.mechanic.game.Game;
|
||||
import net.momirealms.customfishing.api.mechanic.game.GameConfig;
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
import net.momirealms.customfishing.api.mechanic.game.GameCreator;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
|
||||
public interface GameManager {
|
||||
@@ -39,8 +39,5 @@ public interface GameManager {
|
||||
|
||||
GameConfig getRandomGameConfig();
|
||||
|
||||
public interface GameCreator {
|
||||
|
||||
Game setArgs(ConfigurationSection section);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
package net.momirealms.customfishing.api.mechanic.game;
|
||||
|
||||
import org.bukkit.configuration.ConfigurationSection;
|
||||
|
||||
public interface GameCreator {
|
||||
|
||||
Game setArgs(ConfigurationSection section);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package net.momirealms.customfishing.api.mechanic.game;
|
||||
|
||||
public abstract class GameExpansion {
|
||||
|
||||
public abstract String getVersion();
|
||||
|
||||
public abstract String getAuthor();
|
||||
|
||||
public abstract String getGameType();
|
||||
|
||||
public abstract GameCreator getGameCreator();
|
||||
}
|
||||
@@ -18,7 +18,6 @@
|
||||
package net.momirealms.customfishing.api.util;
|
||||
|
||||
import net.momirealms.customfishing.api.CustomFishingPlugin;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.logging.Level;
|
||||
|
||||
Reference in New Issue
Block a user