Versions in this module Expand all Collapse all v1 v1.15.2 Jan 31, 2020 Changes in this version type Client + func (c *Client) JoinServerWithDialer(d Dialer, addr string) (err error) + type Dialer interface + Dial func(network, addr string) (c net.Conn, err error) v1.14.4 Oct 2, 2019 Changes in this version + const Hat + const Jacket + const LeftPantsLeg + const LeftSleeve + const ProtocolVersion + const RightPantsLeg + const RightSleeve + var DefaultSettings = Settings + var SessionURL = "https://sessionserver.mojang.com/session/minecraft/join" + func OfflineUUID(name string) uuid.UUID + func PingAndList(addr string, port int) ([]byte, time.Duration, error) + func PingAndListTimeout(addr string, port int, timeout time.Duration) ([]byte, time.Duration, error) + type Auth struct + AsTk string + Name string + UUID string + type Client struct + Delegate chan func() error + Events eventBroker + Wd world.World + func NewClient() (c *Client) + func (c *Client) AttackEntity(entityID int32, hand int) error + func (c *Client) Chat(msg string) error + func (c *Client) Conn() *net.Conn + func (c *Client) Dig(status, locX, locY, locZ, face int) error + func (c *Client) Disconnect(reason chat.Message) error + func (c *Client) DropItem() error + func (c *Client) DropItemStack() error + func (c *Client) HandleGame() error + func (c *Client) JoinServer(addr string, port int) (err error) + func (c *Client) PickItem(slot int) error + func (c *Client) PluginMessage(channal string, msg []byte) error + func (c *Client) Respawn() error + func (c *Client) SelectItem(slot int) error + func (c *Client) SendPacket(packet pk.Packet) error + func (c *Client) SwapItem() error + func (c *Client) SwingArm(hand int) error + func (c *Client) UseBlock(hand, locX, locY, locZ, face int, cursorX, cursorY, cursorZ float32, ...) error + func (c *Client) UseEntity(entityID int32, hand int) error + func (c *Client) UseEntityAt(entityID int32, x, y, z float32, hand int) error + func (c *Client) UseItem(hand int) error + func (c *Client) UseItemEnd() error + type PlayInfo struct + Difficulty int + Dimension int + Gamemode int + Hardcore bool + LevelType string + ReducedDebugInfo bool + ViewDistance int + type PlayerAbilities struct + FieldofViewModifier float32 + Flags int8 + FlyingSpeed float32 + type Position struct + X int + Y int + Z int + type Settings struct + ChatColors bool + ChatMode int + DisplayedSkinParts uint8 + Locale string + MainHand int + ReceiveMap bool + ViewDistance int