Versions in this module Expand all Collapse all v1 v1.0.1 Sep 16, 2022 Changes in this version + const Hat + const Jacket + const LeftPantsLeg + const LeftSleeve + const RightPantsLeg + const RightSleeve + var DefaultSettings = Settings + func PingAndList(addr string, port int) (string, error) + type Auth struct + AsTk string + Name string + UUID string + func (p *Auth) JoinServer(addr string, port int) (g *Game, err error) + type Block struct + func (b Block) String() string + type BlockChangeEvent struct + type ChatMessageEvent struct + Msg ChatMsg + Pos byte + type ChatMsg jsonChat + func (c ChatMsg) String() (s string) + type Chunk struct + type DisconnectEvent ChatMsg + type Entity interface + EntityID func() int32 + type Event interface + type Face byte + const Bottom + const East + const North + const South + const Top + const West + type Game struct + Info PlayerInfo + func (g *Game) Chat(msg string) error + func (g *Game) Dig(x, y, z int) error + func (g *Game) GetBlock(x, y, z int) Block + func (g *Game) GetEvents() <-chan Event + func (g *Game) GetPlayer() Player + func (g *Game) HandleGame() error + func (g *Game) LookAt(x, y, z float64) + func (g *Game) LookYawPitch(yaw, pitch float32) + func (g *Game) SetPosition(x, y, z float64, onGround bool) + func (g *Game) Settings(set Settings) + func (g *Game) SwingHand(hand bool) + func (g *Game) UseItem(hand bool) + type InventoryChangeEvent int16 + type JoinGameEvent struct + EntityID int32 + type Player struct + Food int32 + FoodSaturation float32 + Health float32 + HeldItem int + Inventory []Solt + OnGround bool + Pitch float32 + UUID [2]int64 + X float64 + Y float64 + Yaw float32 + Z float64 + func (p *Player) EntityID() int32 + func (p *Player) GetBlockPos() (x, y, z int) + func (p *Player) GetPosition() (x, y, z float64) + type PlayerAbilities struct + FieldofViewModifier float32 + Flags int8 + FlyingSpeed float32 + type PlayerDeadEvent struct + type PlayerInfo struct + Difficulty int + Dimension int + EntityID int + Gamemode int + Hardcore bool + LevelType string + ReducedDebugInfo bool + SpawnPosition Position + type PlayerSpawnEvent struct + type Position struct + X int + Y int + Z int + type Section struct + type Settings struct + ChatColors bool + ChatMode int + DisplayedSkinParts uint8 + Locale string + MainHand int + ReciveMap bool + ViewDistance int + type Solt struct + Count byte + ID int + func (s Solt) String() string + type SoundEffectEvent struct + Category int32 + Pitch float32 + Sound int32 + Volume float32 + X float64 + Y float64 + Z float64