NMS

interface NMS

A vanilla code handler of Minecraft (NMS)

Functions

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