NMS

interface NMS

A vanilla code handler of Minecraft (NMS)

Functions

Link copied to clipboard
@NotNull
abstract fun adapt(@NotNull entity: @NotNull Entity): @NotNull EntityAdapter
Gets adapted entity value getter of target entity for Folia
Link copied to clipboard
@NotNull
abstract fun create(@NotNull location: @NotNull Location): @NotNull ModelDisplay
Creates model display
Link copied to clipboard
@NotNull
abstract fun createBundler(initialCapacity: Int): @NotNull PacketBundler
Creates packet bundler
Link copied to clipboard
@Nullable
abstract fun createHitBox(@NotNull entity: @NotNull EntityAdapter, @NotNull supplier: @NotNull HitBoxSource, @NotNull namedBoundingBox: @NotNull NamedBoundingBox, @NotNull controller: @NotNull MountController, @NotNull listener: @NotNull HitBoxListener): @Nullable HitBox
Creates delegator hit-box of target entity
Link copied to clipboard
@NotNull
abstract fun createPlayerHead(@NotNull profile: @NotNull GameProfile): @NotNull ItemStack
Creates player head from game profile
Link copied to clipboard
@NotNull
open fun createSkinItem(@NotNull model: @NotNull String, @NotNull flags: @NotNull List<Boolean>, @NotNull colors: @NotNull List<Integer>): @NotNull TransformedItemStack
Creates skin item
Link copied to clipboard
abstract fun hide(@NotNull player: @NotNull Player, @NotNull registry: @NotNull EntityTrackerRegistry, @NotNull condition: @NotNull BooleanSupplier)
Sends a hide packet for some entity to some player
Link copied to clipboard
@NotNull
abstract fun inject(@NotNull player: @NotNull Player): @NotNull PlayerChannelHandler
Injects netty channel handler to player
Link copied to clipboard
abstract fun isProxyOnlineMode(): Boolean
Gets this server is serviced as online-mode by proxy or native
Link copied to clipboard
abstract fun isSync(): Boolean
Checks current thread is sync or not
Link copied to clipboard
abstract fun mount(@NotNull registry: @NotNull EntityTrackerRegistry, @NotNull bundler: @NotNull PacketBundler)
Adds a mount packet for this tracker to bundler
Link copied to clipboard
@NotNull
abstract fun profile(@NotNull player: @NotNull Player): @NotNull GameProfile
Gets game profile from player
Link copied to clipboard
@NotNull
abstract fun tint(@NotNull itemStack: @NotNull ItemStack, rgb: Int): @NotNull ItemStack
Applies tint to some item
Link copied to clipboard
@NotNull
abstract fun version(): @NotNull NMSVersion
Gets Spigot-mapped version of Minecraft vanilla code.