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
  • Constructor Details

    • BukkitHuskSync

      public BukkitHuskSync()
  • Method Details

    • onEnable

      public void onEnable()
      Specified by:
      onEnable in interface org.bukkit.plugin.Plugin
      Overrides:
      onEnable in class org.bukkit.plugin.java.JavaPlugin
    • onDisable

      public void onDisable()
      Specified by:
      onDisable in interface org.bukkit.plugin.Plugin
      Overrides:
      onDisable in class org.bukkit.plugin.java.JavaPlugin
    • createEventListener

      @NotNull protected BukkitEventListener createEventListener()
    • getOnlineUsers

      @NotNull public Set<net.william278.husksync.user.OnlineUser> getOnlineUsers()
      Specified by:
      getOnlineUsers in interface net.william278.husksync.HuskSync
    • getOnlineUser

      @NotNull public Optional<net.william278.husksync.user.OnlineUser> getOnlineUser(@NotNull UUID uuid)
      Specified by:
      getOnlineUser in interface net.william278.husksync.HuskSync
    • getDatabase

      @NotNull public net.william278.husksync.database.Database getDatabase()
      Specified by:
      getDatabase in interface net.william278.husksync.HuskSync
    • getRedisManager

      @NotNull public net.william278.husksync.redis.RedisManager getRedisManager()
      Specified by:
      getRedisManager in interface net.william278.husksync.HuskSync
    • getDataAdapter

      @NotNull public net.william278.husksync.adapter.DataAdapter getDataAdapter()
      Specified by:
      getDataAdapter in interface net.william278.husksync.HuskSync
    • getDataSyncer

      @NotNull public net.william278.husksync.sync.DataSyncer getDataSyncer()
      Specified by:
      getDataSyncer in interface net.william278.husksync.HuskSync
    • setDataSyncer

      public void setDataSyncer(@NotNull net.william278.husksync.sync.DataSyncer dataSyncer)
      Specified by:
      setDataSyncer in interface net.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 interface net.william278.husksync.HuskSync
    • getAvailableMigrators

      @NotNull public List<net.william278.husksync.migrator.Migrator> getAvailableMigrators()
      Specified by:
      getAvailableMigrators in interface net.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 interface net.william278.husksync.HuskSync
    • getSettings

      @NotNull public net.william278.husksync.config.Settings getSettings()
      Specified by:
      getSettings in interface net.william278.husksync.HuskSync
    • setSettings

      public void setSettings(@NotNull net.william278.husksync.config.Settings settings)
      Specified by:
      setSettings in interface net.william278.husksync.HuskSync
    • getServerName

      @NotNull public String getServerName()
      Specified by:
      getServerName in interface net.william278.husksync.HuskSync
    • setServer

      public void setServer(@NotNull net.william278.husksync.config.Server server)
      Specified by:
      setServer in interface net.william278.husksync.HuskSync
    • getLocales

      @NotNull public net.william278.husksync.config.Locales getLocales()
      Specified by:
      getLocales in interface net.william278.husksync.HuskSync
    • setLocales

      public void setLocales(@NotNull net.william278.husksync.config.Locales locales)
      Specified by:
      setLocales in interface net.william278.husksync.HuskSync
    • isDependencyLoaded

      public boolean isDependencyLoaded(@NotNull String name)
      Specified by:
      isDependencyLoaded in interface net.william278.husksync.HuskSync
    • registerMetrics

      public void registerMetrics(int metricsId)
    • log

      public void log(@NotNull Level level, @NotNull String message, @NotNull Throwable... throwable)
      Specified by:
      log in interface net.william278.husksync.HuskSync
    • getPluginVersion

      @NotNull public net.william278.desertwell.util.Version getPluginVersion()
      Specified by:
      getPluginVersion in interface net.william278.husksync.HuskSync
    • getMinecraftVersion

      @NotNull public net.william278.desertwell.util.Version getMinecraftVersion()
      Specified by:
      getMinecraftVersion in interface net.william278.husksync.HuskSync
    • getPlatformType

      @NotNull public String getPlatformType()
      Specified by:
      getPlatformType in interface net.william278.husksync.HuskSync
    • getLegacyConverter

      public Optional<net.william278.husksync.util.LegacyConverter> getLegacyConverter()
      Specified by:
      getLegacyConverter in interface net.william278.husksync.HuskSync
    • getLockedPlayers

      @NotNull public Set<UUID> getLockedPlayers()
      Specified by:
      getLockedPlayers in interface net.william278.husksync.HuskSync
    • getGson

      @NotNull public com.google.gson.Gson getGson()
      Specified by:
      getGson in interface net.william278.husksync.HuskSync
    • isDisabling

      public boolean isDisabling()
      Specified by:
      isDisabling in interface net.william278.husksync.HuskSync
    • getMapViews

      @NotNull public Map<Integer,​org.bukkit.map.MapView> getMapViews()
      Specified by:
      getMapViews in interface BukkitMapPersister
    • 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 interface net.william278.husksync.HuskSync
    • getCommandRegistrar

      @NotNull public space.arim.morepaperlib.commands.CommandRegistration getCommandRegistrar()
    • getPlugin

      @NotNull public net.william278.husksync.HuskSync getPlugin()
      Specified by:
      getPlugin in interface BukkitMapPersister
      Specified by:
      getPlugin in interface net.william278.husksync.event.EventDispatcher
      Specified by:
      getPlugin in interface net.william278.husksync.util.Task.Supplier