NMS
interface NMS
Handles direct interactions with Minecraft's internal server code (NMS).
This interface provides methods for creating displays, managing packets, handling hitboxes, and adapting entities for different server environments (e.g., Folia).
Since
1.15.2
Functions
Link copied to clipboard
Adapts a Bukkit entity to a BaseEntity, handling Folia compatibility.
Adapts a Bukkit player to a BasePlayer, handling Folia compatibility.
Link copied to clipboard
Creates a model display at the specified location.
@NotNull
Creates a model display at the specified location with an initial configuration.
@NotNull
Creates a model display at the specified location with a Y-offset and initial configuration.
Link copied to clipboard
Creates a packet bundler with an initial capacity.
Link copied to clipboard
@Nullable
Creates a delegate hitbox for a target entity.
Link copied to clipboard
Creates a mod animation bundler.
Link copied to clipboard
Creates a nametag for a rendered bone.
@NotNull
Creates a nametag for a rendered bone with configuration.
Link copied to clipboard
Creates a parallel packet bundler with a size threshold.
Link copied to clipboard
Link copied to clipboard
abstract fun hide(@NotNull channel: @NotNull PlayerChannelHandler, @NotNull registry: @NotNull EntityTrackerRegistry)
Sends a hide packet for an entity to a player via their channel handler.
open fun hide(@NotNull channel: @NotNull PlayerChannelHandler, @NotNull registry: @NotNull EntityTrackerRegistry, @NotNull condition: @NotNull BooleanSupplier)
Sends a hide packet for an entity to a player if a condition is met.
Link copied to clipboard
@NotNull
Injects a Netty channel handler into a player's connection.
Link copied to clipboard
Checks if the server is in online mode (either natively or via proxy).
Link copied to clipboard
abstract fun mount(@NotNull registry: @NotNull EntityTrackerRegistry, @NotNull bundler: @NotNull PacketBundler)
Adds a mount packet for an entity tracker to a bundler.
Link copied to clipboard
Retrieves the model profile (skin) for a player.
Link copied to clipboard
@NotNull
Applies a tint color to an item stack.
Link copied to clipboard
Returns the NMS version of the server.