PlayerMP

class PlayerMP(player: EntityPlayer) : EntityLivingBase

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun draw(player: Any, x: Int, y: Int, rotate: Boolean = false, showNametag: Boolean = false, showArmor: Boolean = true, showCape: Boolean = true, showHeldItem: Boolean = true, showArrows: Boolean = true): PlayerMP

Draws the player in the GUI

Link copied to clipboard
fun getDisplayName(): TextComponent

Gets the display name for this player, i.e. the name shown in tab list and in the player's nametag.

Link copied to clipboard
open override fun getName(): String

Gets the name of the entity, could be "Villager", or, if the entity has a custom name, it returns that.

Link copied to clipboard
fun getPing(): Int
Link copied to clipboard
fun getTeam(): Team?
Link copied to clipboard
fun isSpectator(): Boolean
Link copied to clipboard
fun setNametagName(textComponent: TextComponent)

Sets the name for this player shown above their head, in their name tag

Link copied to clipboard
fun setTabDisplayName(textComponent: TextComponent)
Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val player: EntityPlayer

Sources

Link copied to clipboard