Documentation ¶
Index ¶
- type Player
- func (p *Player) Blocks() *blocks.Store
- func (p *Player) Conn() *minecraft.Conn
- func (p *Player) CurrentId() *atomic.Int64
- func (p *Player) Dimension() *atomic.Int32
- func (p *Player) Entities() *entity.Store
- func (p *Player) Identity() login.IdentityData
- func (p *Player) Kick(msg ...string)
- func (p *Player) Message(message string) error
- func (p *Player) RemoteDisconnect(err error)
- func (p *Player) Send(info server.Info, config ...server.ConnectConfig) error
- func (p *Player) Server() server.Server
- func (p *Player) UniqueEntities() *entity.Store
- func (p *Player) WritePacket(packet packet.Packet) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
Player represents a player connected to the proxy.
func (*Player) Identity ¶
func (p *Player) Identity() login.IdentityData
Identity returns the players login.IdentityData.
func (*Player) RemoteDisconnect ¶
RemoteDisconnect is called when a server disconnects the player.
func (*Player) UniqueEntities ¶
UniqueEntities returns the unique entity store for the player.
Click to show internal directories.
Click to hide internal directories.