McServerPlayer

Represents a player in a Minecraft server.

Properties

Link copied to clipboard
abstract val eyeHeight: Double
Link copied to clipboard
Link copied to clipboard

Checks if the player has a scoreboard display below their name.

Link copied to clipboard
abstract val hitBoxHeight: Float
Link copied to clipboard
abstract val hitBoxWidth: Float
Link copied to clipboard
abstract val id: Int
Link copied to clipboard
abstract val isOnline: Boolean
Link copied to clipboard
abstract val isSneaking: Boolean

Checks if the player is sneaking.

Link copied to clipboard
abstract val isSpectator: Boolean

Checks if the player is currently in spectator mode.

Link copied to clipboard
abstract val language: String
Link copied to clipboard
abstract val name: String
Link copied to clipboard

Gets a collection of registered mod channels for the player.

Link copied to clipboard

Gets the entity that the player is following when in spectator mode.

Link copied to clipboard
abstract val uuid: UUID
Link copied to clipboard
abstract val world: McServerWorld

Gets the world in which the entity is currently located.

Functions

Link copied to clipboard
abstract fun canSee(player: McServerPlayer): Boolean

Determines if this player can see another player.

Link copied to clipboard
abstract override fun <T> getInstance(): T

Gets the server's implementation instance for this player.

Link copied to clipboard
abstract fun getLookAngle(): Pos3d
abstract fun getLookAngle(lookAngle: Pos3d): Pos3d
Link copied to clipboard
abstract fun getPermission(permission: String): PermissionTristate
Link copied to clipboard
abstract fun getPosition(): Pos3d
abstract fun getPosition(position: Pos3d): Pos3d
Link copied to clipboard

Creates a new instance of ServerPos3d representing the entity's position.

abstract fun getServerPosition(position: ServerPos3d): ServerPos3d

Copies all position information to the provided ServerPos3d instance without creating a new instance of ServerPos3d.

Link copied to clipboard
abstract fun hasPermission(permission: String): Boolean
Link copied to clipboard
abstract fun isValid(): Boolean

Checks if entity is not removed from the world.

Link copied to clipboard
abstract fun kick(reason: McTextComponent)
Link copied to clipboard
open fun sendActionBar(text: String)
abstract fun sendActionBar(text: McTextComponent)
Link copied to clipboard
open fun sendMessage(text: String)
abstract fun sendMessage(text: McTextComponent)
Link copied to clipboard
abstract fun sendPacket(channel: String, data: ByteArray)