Package net.william278.husksync
Class BukkitHuskSync
java.lang.Object
org.bukkit.plugin.PluginBase
org.bukkit.plugin.java.JavaPlugin
net.william278.husksync.BukkitHuskSync
- All Implemented Interfaces:
BukkitEventDispatcher
,net.william278.husksync.event.EventDispatcher
,net.william278.husksync.HuskSync
,BukkitMapPersister
,BukkitTask.Supplier
,net.william278.husksync.util.Task.Supplier
,org.bukkit.command.CommandExecutor
,org.bukkit.command.TabCompleter
,org.bukkit.command.TabExecutor
,org.bukkit.plugin.Plugin
public class BukkitHuskSync
extends org.bukkit.plugin.java.JavaPlugin
implements net.william278.husksync.HuskSync, BukkitTask.Supplier, BukkitEventDispatcher, BukkitMapPersister
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.william278.husksync.util.BukkitMapPersister
BukkitMapPersister.PersistentMapCanvas, BukkitMapPersister.PersistentMapRenderer
Nested classes/interfaces inherited from interface net.william278.husksync.HuskSync
net.william278.husksync.HuskSync.FailedToLoadException
-
Field Summary
Fields inherited from interface net.william278.husksync.util.BukkitMapPersister
MAP_DATA_KEY, MAP_PIXEL_DATA_KEY, MAP_VIEW_ID_MAPPINGS_KEY
Fields inherited from interface net.william278.husksync.HuskSync
SPIGOT_RESOURCE_ID
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BukkitEventListener
space.arim.morepaperlib.scheduling.AsynchronousScheduler
net.kyori.adventure.platform.AudienceProvider
List<net.william278.husksync.migrator.Migrator>
space.arim.morepaperlib.commands.CommandRegistration
net.william278.husksync.adapter.DataAdapter
net.william278.husksync.database.Database
net.william278.husksync.sync.DataSyncer
com.google.gson.Gson
getGson()
Optional<net.william278.husksync.util.LegacyConverter>
net.william278.husksync.config.Locales
net.william278.desertwell.util.Version
Optional<net.william278.husksync.user.OnlineUser>
getOnlineUser(UUID uuid)
Set<net.william278.husksync.user.OnlineUser>
Map<net.william278.husksync.data.Identifier,net.william278.husksync.data.Data>
getPlayerCustomDataStore(net.william278.husksync.user.OnlineUser user)
net.william278.husksync.HuskSync
net.william278.desertwell.util.Version
net.william278.husksync.redis.RedisManager
space.arim.morepaperlib.scheduling.RegionalScheduler
space.arim.morepaperlib.scheduling.GracefulScheduling
Map<net.william278.husksync.data.Identifier,net.william278.husksync.data.Serializer<? extends net.william278.husksync.data.Data>>
net.william278.husksync.config.Settings
boolean
isDependencyLoaded(String name)
boolean
void
void
void
onEnable()
void
registerMetrics(int metricsId)
void
setDataSyncer(net.william278.husksync.sync.DataSyncer dataSyncer)
void
setLocales(net.william278.husksync.config.Locales locales)
void
setServer(net.william278.husksync.config.Server server)
void
setSettings(net.william278.husksync.config.Settings settings)
Methods inherited from class org.bukkit.plugin.java.JavaPlugin
getClassLoader, getCommand, getConfig, getDataFolder, getDefaultWorldGenerator, getDescription, getFile, getLogger, getPlugin, getPluginLoader, getProvidingPlugin, getResource, getServer, getTextResource, isEnabled, isNaggable, onCommand, onLoad, onTabComplete, reloadConfig, saveConfig, saveDefaultConfig, saveResource, setEnabled, setNaggable, toString
Methods inherited from class org.bukkit.plugin.PluginBase
equals, getName, hashCode
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.william278.husksync.event.BukkitEventDispatcher
fireIsCancelled, getDataSaveEvent, getPreSyncEvent, getSyncCompleteEvent
Methods inherited from interface net.william278.husksync.util.BukkitMapPersister
getMapView, persistLockedMaps, renderMapFromFile, saveMapToFile, setMapView, setMapViews
Methods inherited from interface net.william278.husksync.util.BukkitTask.Supplier
cancelTasks, getAsyncTask, getRepeatingTask, getSyncTask
Methods inherited from interface net.william278.husksync.event.EventDispatcher
fireEvent
Methods inherited from interface net.william278.husksync.HuskSync
checkForUpdates, createGson, debug, getAudience, getConsole, getDataFolder, getIdentifier, getRegisteredDataTypes, getResource, getUpdateChecker, initialize, isLocked, loadConfigs, lockPlayer, registerSerializer, unlockPlayer
Methods inherited from interface net.william278.husksync.util.Task.Supplier
runAsync, runAsyncDelayed, runSync, runSyncDelayed, supplyAsync
-
Constructor Details
-
BukkitHuskSync
public BukkitHuskSync()
-
-
Method Details
-
onEnable
public void onEnable()- Specified by:
onEnable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onEnable
in classorg.bukkit.plugin.java.JavaPlugin
-
onDisable
public void onDisable()- Specified by:
onDisable
in interfaceorg.bukkit.plugin.Plugin
- Overrides:
onDisable
in classorg.bukkit.plugin.java.JavaPlugin
-
createEventListener
-
getOnlineUsers
- Specified by:
getOnlineUsers
in interfacenet.william278.husksync.HuskSync
-
getOnlineUser
@NotNull public Optional<net.william278.husksync.user.OnlineUser> getOnlineUser(@NotNull UUID uuid)- Specified by:
getOnlineUser
in interfacenet.william278.husksync.HuskSync
-
getDatabase
@NotNull public net.william278.husksync.database.Database getDatabase()- Specified by:
getDatabase
in interfacenet.william278.husksync.HuskSync
-
getRedisManager
@NotNull public net.william278.husksync.redis.RedisManager getRedisManager()- Specified by:
getRedisManager
in interfacenet.william278.husksync.HuskSync
-
getDataAdapter
@NotNull public net.william278.husksync.adapter.DataAdapter getDataAdapter()- Specified by:
getDataAdapter
in interfacenet.william278.husksync.HuskSync
-
getDataSyncer
@NotNull public net.william278.husksync.sync.DataSyncer getDataSyncer()- Specified by:
getDataSyncer
in interfacenet.william278.husksync.HuskSync
-
setDataSyncer
public void setDataSyncer(@NotNull net.william278.husksync.sync.DataSyncer dataSyncer)- Specified by:
setDataSyncer
in interfacenet.william278.husksync.HuskSync
-
getSerializers
@NotNull public Map<net.william278.husksync.data.Identifier,net.william278.husksync.data.Serializer<? extends net.william278.husksync.data.Data>> getSerializers()- Specified by:
getSerializers
in interfacenet.william278.husksync.HuskSync
-
getAvailableMigrators
- Specified by:
getAvailableMigrators
in interfacenet.william278.husksync.HuskSync
-
getPlayerCustomDataStore
@NotNull public Map<net.william278.husksync.data.Identifier,net.william278.husksync.data.Data> getPlayerCustomDataStore(@NotNull net.william278.husksync.user.OnlineUser user)- Specified by:
getPlayerCustomDataStore
in interfacenet.william278.husksync.HuskSync
-
getSettings
@NotNull public net.william278.husksync.config.Settings getSettings()- Specified by:
getSettings
in interfacenet.william278.husksync.HuskSync
-
setSettings
public void setSettings(@NotNull net.william278.husksync.config.Settings settings)- Specified by:
setSettings
in interfacenet.william278.husksync.HuskSync
-
getServerName
- Specified by:
getServerName
in interfacenet.william278.husksync.HuskSync
-
setServer
public void setServer(@NotNull net.william278.husksync.config.Server server)- Specified by:
setServer
in interfacenet.william278.husksync.HuskSync
-
getLocales
@NotNull public net.william278.husksync.config.Locales getLocales()- Specified by:
getLocales
in interfacenet.william278.husksync.HuskSync
-
setLocales
public void setLocales(@NotNull net.william278.husksync.config.Locales locales)- Specified by:
setLocales
in interfacenet.william278.husksync.HuskSync
-
isDependencyLoaded
- Specified by:
isDependencyLoaded
in interfacenet.william278.husksync.HuskSync
-
registerMetrics
public void registerMetrics(int metricsId) -
log
- Specified by:
log
in interfacenet.william278.husksync.HuskSync
-
getPluginVersion
@NotNull public net.william278.desertwell.util.Version getPluginVersion()- Specified by:
getPluginVersion
in interfacenet.william278.husksync.HuskSync
-
getMinecraftVersion
@NotNull public net.william278.desertwell.util.Version getMinecraftVersion()- Specified by:
getMinecraftVersion
in interfacenet.william278.husksync.HuskSync
-
getPlatformType
- Specified by:
getPlatformType
in interfacenet.william278.husksync.HuskSync
-
getLegacyConverter
- Specified by:
getLegacyConverter
in interfacenet.william278.husksync.HuskSync
-
getLockedPlayers
- Specified by:
getLockedPlayers
in interfacenet.william278.husksync.HuskSync
-
getGson
@NotNull public com.google.gson.Gson getGson()- Specified by:
getGson
in interfacenet.william278.husksync.HuskSync
-
isDisabling
public boolean isDisabling()- Specified by:
isDisabling
in interfacenet.william278.husksync.HuskSync
-
getMapViews
- Specified by:
getMapViews
in interfaceBukkitMapPersister
-
getScheduler
@NotNull public space.arim.morepaperlib.scheduling.GracefulScheduling getScheduler() -
getAsyncScheduler
@NotNull public space.arim.morepaperlib.scheduling.AsynchronousScheduler getAsyncScheduler() -
getRegionalScheduler
@NotNull public space.arim.morepaperlib.scheduling.RegionalScheduler getRegionalScheduler() -
getAudiences
@NotNull public net.kyori.adventure.platform.AudienceProvider getAudiences()- Specified by:
getAudiences
in interfacenet.william278.husksync.HuskSync
-
getCommandRegistrar
@NotNull public space.arim.morepaperlib.commands.CommandRegistration getCommandRegistrar() -
getPlugin
@NotNull public net.william278.husksync.HuskSync getPlugin()- Specified by:
getPlugin
in interfaceBukkitMapPersister
- Specified by:
getPlugin
in interfacenet.william278.husksync.event.EventDispatcher
- Specified by:
getPlugin
in interfacenet.william278.husksync.util.Task.Supplier
-