ServerboundMovePlayerPacketUtil

Util class for attaching and working with the ServerboundInteractPacket for user-defined interactions by the player.

Types

Link copied to clipboard
data class MovePlayerEvent(var x: Double, var y: Double, var z: Double, var yRot: Float, var xRot: Float, var onGround: Boolean, var horizontalCollision: Boolean, var hasPos: Boolean, var hasRot: Boolean)

Functions

Link copied to clipboard
fun attach(name: String, plugin: JavaPlugin, player: Player, callback: ServerboundMovePlayerPacketUtil.MovePlayerEvent.() -> Unit): Boolean

Attach the Event to the Player.