specter

package
v0.0.0-...-7dc0a99 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddSpecter

func AddSpecter(s *Specter)

func GetSpecters

func GetSpecters() map[string]*Specter

Types

type Specter

type Specter struct {
	Conn    *minecraft.Conn
	Log     *log.Logger
	Address string
}

func GetSpecter

func GetSpecter(name string) (*Specter, bool)

func (*Specter) Chat

func (s *Specter) Chat(message string)

func (*Specter) Move

func (s *Specter) Move(x, y, z float32)

func (*Specter) Quit

func (s *Specter) Quit()

type SpecterInterface

type SpecterInterface interface {
	Login() (specter *Specter, err error)
}

type SpecterNormal

type SpecterNormal struct {
	Specter
	Name string
}

func (*SpecterNormal) Login

func (s *SpecterNormal) Login() (specter *SpecterNormal, err error)

type SpecterXbox

type SpecterXbox struct {
	Specter
}

func (*SpecterXbox) Login

func (s *SpecterXbox) Login() (specter *SpecterXbox, err error)

Jump to

Keyboard shortcuts

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