Database design, start callback-based implementation planning

This commit is contained in:
William committed 2022-05-21 02:53:58 +01:00
1 parent 0446db39c5
commit 8e7d5e74a0
17 files changed
+672 -92

No files matched your search

@@ -2,7 +2,9 @@ package net.william278.huskhomes;
import net.william278.huskhomes.config.Messages;
import net.william278.huskhomes.config.Settings;
import net.william278.huskhomes.data.Database;
import net.william278.huskhomes.player.Player;
import net.william278.huskhomes.position.Position;
import net.william278.huskhomes.position.Server;
import net.william278.huskhomes.util.Logger;
@@ -14,38 +16,47 @@ import java.util.Set;
public interface HuskHomes {
/**
* Returns the platform plugin console logger
* The platform plugin console logger
*
* @return the {@link Logger} implementation to use
*/
Logger getLoggingAdapter();
/**
* Returns a {@link Set} of online {@link Player}s on this server
* The {@link Set} of online {@link Player}s on this server
*
* @return a {@link Set} of currently online {@link Player}s
*/
Set<Player> getOnlinePlayers();
/**
* Return the plugin {@link Settings} loaded from file
* The plugin {@link Settings} loaded from file
*
* @return the plugin {@link Settings}
*/
Settings getSettings();
/**
* Return the plugin messages loaded from file
* The plugin messages loaded from file
*
* @return The plugin {@link Messages}
*/
Messages getMessages();
/**
* Return the {@link Server} the plugin is running on
* The {@link Server} the plugin is running on
*
* @return the {@link Server} object representing the implementing server
*/
Server getServerData();
/**
* The {@link Database} that stores persistent plugin data
*
* @return the {@link Database} implementation for accessing data
*/
Database getDatabase();
boolean isValidPositionOnServer(Position position);
}