NMS

interface NMS

A vanilla code handler of Minecraft (NMS)

Functions

Link copied to clipboard
@NotNull
abstract fun adapt(@NotNull entity: @NotNull Entity): @NotNull BaseEntity
Gets adapted entity value getter of target entity for Folia
Link copied to clipboard
@NotNull
open fun create(@NotNull location: @NotNull Location): @NotNull ModelDisplay
@NotNull
open fun create(@NotNull location: @NotNull Location, @NotNull initialConsumer: @NotNull Consumer<ModelDisplay>): @NotNull ModelDisplay
@NotNull
abstract fun create(@NotNull location: @NotNull Location, yOffset: Double, @NotNull initialConsumer: @NotNull Consumer<ModelDisplay>): @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 BaseEntity, @NotNull bone: @NotNull RenderedBone, @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 createLazyBundler(): @NotNull PacketBundler
Creates lazy packet bundler
Link copied to clipboard
@NotNull
abstract fun createNametag(@NotNull bone: @NotNull RenderedBone): @NotNull ModelNametag
@NotNull
open fun createNametag(@NotNull bone: @NotNull RenderedBone, @NotNull consumer: @NotNull Consumer<ModelNametag>): @NotNull ModelNametag
Creates model nametag
Link copied to clipboard
@NotNull
abstract fun createParallelBundler(threshold: Int): @NotNull PacketBundler
Creates parallel packet bundler
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 strings: @NotNull List<String>, @NotNull colors: @NotNull List<Integer>): @NotNull TransformedItemStack
Creates skin item
Link copied to clipboard
abstract fun hide(@NotNull channel: @NotNull PlayerChannelHandler, @NotNull registry: @NotNull EntityTrackerRegistry)
open fun hide(@NotNull channel: @NotNull PlayerChannelHandler, @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 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 OfflinePlayer): @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.