NMS

interface NMS

A vanilla code handler of Minecraft (NMS)

Functions

Link copied to clipboard
@NotNull
abstract fun adapt(@NotNull entity: LivingEntity): 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
abstract fun createBundler(): 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
abstract fun hide(@NotNull player: Player, @NotNull entity: Entity)
Sends 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 mount packet for this tracker to bundler
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.