NMS

@ApiStatus.Internal
interface NMS : VolatileCodeHandler

Represents volatile code handler.

Functions

Link copied to clipboard
@NotNull
abstract fun getFoliaAdaptedEntity(@NotNull entity: @NotNull Entity): @NotNull Entity
Gets an instance that allows async access to getHandle()
Link copied to clipboard
@NotNull
abstract fun getFoliaAdaptedPlayer(@NotNull player: @NotNull Player): @NotNull Player
Gets an instance that allows async access to getHandle()
Link copied to clipboard
abstract fun getTextureValue(p: @NotNull HudPlayer): @NotNull String
Link copied to clipboard
@NotNull
abstract fun getVersion(): @NotNull NMSVersion
Gets that server's version.
Link copied to clipboard
abstract fun handleReloadCommand(@NotNull module: @NotNull CommandModule<BetterCommandSource>)
Registers this command on reload too.
Link copied to clipboard
abstract fun inject(p: @NotNull HudPlayer, p1: BossBar.Color)
Link copied to clipboard
abstract fun registerCommand(@NotNull module: @NotNull CommandModule<BetterCommandSource>)
Registers brigadier command to server.
Link copied to clipboard
abstract fun removeBossBar(p: @NotNull HudPlayer)
Link copied to clipboard
abstract fun showBossBar(p: @NotNull HudPlayer, p1: BossBar.Color, p2: @NotNull Component)