bedrock

package
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2023 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	OnClose   func(reason string)
	OnSpawn   func()
	OnMessage func(message string)

	RainbowSkin bool
	// contains filtered or unexported fields
}

func NewClient

func NewClient(address string) (*Client, error)

func (*Client) Attack

func (c *Client) Attack(player string)

func (*Client) Chat

func (c *Client) Chat(message string)

func (*Client) Connect

func (c *Client) Connect()

func (*Client) Disconnect

func (c *Client) Disconnect(reason string)

func (*Client) Jump

func (c *Client) Jump()

func (*Client) Move

func (c *Client) Move(direction string)

func (*Client) Rainbow

func (c *Client) Rainbow()

func (*Client) Sneak

func (c *Client) Sneak()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL