Interface NMS

All Superinterfaces:
kr.toxicity.hud.api.volatilecode.VolatileCodeHandler

@Internal public interface NMS extends kr.toxicity.hud.api.volatilecode.VolatileCodeHandler
Represents volatile code handler.
  • Method Summary

    Modifier and Type
    Method
    Description
    @NotNull org.bukkit.entity.Entity
    getFoliaAdaptedEntity(@NotNull org.bukkit.entity.Entity entity)
    Gets an instance that allows async access to getHandle()
    @NotNull org.bukkit.entity.Player
    getFoliaAdaptedPlayer(@NotNull org.bukkit.entity.Player player)
    Gets an instance that allows async access to getHandle()
    @NotNull NMSVersion
    Gets that server's version.
    void
    handleReloadCommand(@NotNull kr.toxicity.command.impl.CommandModule<kr.toxicity.command.BetterCommandSource> module)
    Registers this command on reload too.
    void
    registerCommand(@NotNull kr.toxicity.command.impl.CommandModule<kr.toxicity.command.BetterCommandSource> module)
    Registers brigadier command to server.

    Methods inherited from interface kr.toxicity.hud.api.volatilecode.VolatileCodeHandler

    getTextureValue, inject, removeBossBar, showBossBar
  • Method Details

    • getFoliaAdaptedPlayer

      @NotNull @NotNull org.bukkit.entity.Player getFoliaAdaptedPlayer(@NotNull @NotNull org.bukkit.entity.Player player)
      Gets an instance that allows async access to getHandle()
      Parameters:
      player - target player
      Returns:
      adapted player
    • getFoliaAdaptedEntity

      @NotNull @NotNull org.bukkit.entity.Entity getFoliaAdaptedEntity(@NotNull @NotNull org.bukkit.entity.Entity entity)
      Gets an instance that allows async access to getHandle()
      Parameters:
      entity - target entity
      Returns:
      adapted entity
    • getVersion

      @NotNull @NotNull NMSVersion getVersion()
      Gets that server's version.
      Returns:
      version
    • registerCommand

      void registerCommand(@NotNull @NotNull kr.toxicity.command.impl.CommandModule<kr.toxicity.command.BetterCommandSource> module)
      Registers brigadier command to server.
      Parameters:
      module - module
    • handleReloadCommand

      void handleReloadCommand(@NotNull @NotNull kr.toxicity.command.impl.CommandModule<kr.toxicity.command.BetterCommandSource> module)
      Registers this command on reload too.
      Parameters:
      module - modules