Versions in this module Expand all Collapse all v1 v1.15.2 Oct 3, 2021 Changes in this version + const Hat + const Jacket + const LeftPantsLeg + const LeftSleeve + const ProtocolVersion + const RightPantsLeg + const RightSleeve + var DefaultSettings = Settings + func OfflineUUID(name string) uuid.UUID + func PingAndList(addr string, port int, protocolVersion int) ([]byte, time.Duration, error) + func PingAndListTimeout(addr string, port int, protocolVersion 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 + Inputs path.Inputs + Physics phy.State + Wd world.World + func NewClient() *Client + func (c *Client) AttackEntity(entityID int32, hand int) error + func (c *Client) Chat(msg string) error + func (c *Client) Close() error + func (c *Client) Conn() *mcnet.Conn + func (c *Client) Dig(status, locX, locY, locZ, face int) 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) JoinServerWithDialer(d Dialer, addr string) (err error) + func (c *Client) PickItem(slot int) error + func (c *Client) PluginMessage(channel string, msg []byte) error + func (c *Client) Respawn() error + func (c *Client) SelectItem(slot int) error + func (c *Client) SendCloseWindow(windowID byte) error + func (c *Client) SendMessage(msg string) 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 Dialer interface + Dial func(network, addr string) (c net.Conn, err error) + type PlayInfo struct + Difficulty int + Dimension int + Gamemode int + Hardcore bool + IsDebug bool + IsFlat bool + ReducedDebugInfo bool + SpawnPosition Position + ViewDistance int + WorldName string + type PlayerAbilities struct + FieldofViewModifier float32 + Flags int8 + FlyingSpeed float32 + type Position struct + X int + Y int + Z int + type ServInfo struct + Brand string + type Settings struct + Brand string + ChatColors bool + ChatMode int + DisplayedSkinParts uint8 + Locale string + MainHand int + ReceiveMap bool + ViewDistance int