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 TypeMethodDescription@NotNull org.bukkit.entity.EntitygetFoliaAdaptedEntity(@NotNull org.bukkit.entity.Entity entity) Gets an instance that allows async access to getHandle()@NotNull org.bukkit.entity.PlayergetFoliaAdaptedPlayer(@NotNull org.bukkit.entity.Player player) Gets an instance that allows async access to getHandle()@NotNull NMSVersionGets that server's version.voidhandleReloadCommand(@NotNull kr.toxicity.command.impl.CommandModule<kr.toxicity.command.BetterCommandSource> module) Registers this command on reload too.voidregisterCommand(@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
-
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
-