Documentation ¶
Index ¶
- type Player
- func (player *Player) BroadcastMovement()
- func (player *Player) GetCapeData() []byte
- func (player *Player) GetDisplayName() string
- func (player *Player) GetGeometryData() string
- func (player *Player) GetGeometryName() string
- func (player *Player) GetName() string
- func (player *Player) GetPlatform() int32
- func (player *Player) GetSkinData() []byte
- func (player *Player) GetSkinId() string
- func (player *Player) GetUUID() uuid.UUID
- func (player *Player) GetXUID() string
- func (player *Player) SendMovement(viewer entities.Viewer)
- func (player *Player) SetCapeData(data []byte)
- func (player *Player) SetDisplayName(name string)
- func (player *Player) SetGeometryData(data string)
- func (player *Player) SetGeometryName(name string)
- func (player *Player) SetName(name string)
- func (player *Player) SetSkinData(data []byte)
- func (player *Player) SetSkinId(id string)
- func (player *Player) SpawnPlayerTo(viewer entities.Viewer)
- func (player *Player) SpawnPlayerToAll()
- func (player *Player) SyncMove(x, y, z, pitch, yaw, headYaw float64, onGround bool)
- func (player Player) Tick()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Player ¶
func (*Player) BroadcastMovement ¶
func (player *Player) BroadcastMovement()
Sends updated player position and rotation to all viewers, this overrides the base entity function.
func (*Player) GetCapeData ¶
GetCapeData returns the cape data of the player. (RGBA byte array)
func (*Player) GetDisplayName ¶
GetDisplayName returns the name the player shows in-game.
func (*Player) GetGeometryData ¶
GetGeometryData returns the geometry data (json string) of the player.
func (*Player) GetGeometryName ¶
GetGeometryName returns the geometry name of the player.
func (*Player) GetPlatform ¶
GetPlatform returns the platform of the player.
func (*Player) GetSkinData ¶
GetSkinData returns the skin data of the player. (RGBA byte array)
func (*Player) SendMovement ¶
Sends updated entity position and rotation to a certain viewer this overrides the base entity function.
func (*Player) SetCapeData ¶
SetCapeData sets the cape data of the player. (RGBA byte array)
func (*Player) SetDisplayName ¶
SetDisplayName sets the name other players can see in-game.
func (*Player) SetGeometryData ¶
SetGeometryData sets the geometry data (json string) of the player.
func (*Player) SetGeometryName ¶
SetGeometryName sets the geometry name of the player.
func (*Player) SetName ¶
SetName sets the player name of this player. Note: This function is internal, and should not be used by plugins.
func (*Player) SetSkinData ¶
SetSkinData sets the skin data of the player. (RGBA byte array)
func (*Player) SpawnPlayerTo ¶
SpawnPlayerTo spawns this player to the given other player.
func (*Player) SpawnPlayerToAll ¶
func (player *Player) SpawnPlayerToAll()
SpawnPlayerToAll spawns this player to all other players.