Documentation
¶
Index ¶
- Constants
- Variables
- func GetLogger() *utils.Logger
- func HelpCommand() command.Command
- func InitCommands()
- func InitDirectories(path string)
- func Load()
- func SetServer(s Server)
- func StopCommand() command.Command
- type Gamemode
- type Player
- func (p *Player) DisplayName() string
- func (p *Player) GameMode() Gamemode
- func (p *Player) Ip() string
- func (p *Player) IsAuthenticated() bool
- func (p *Player) LoggedIn() bool
- func (p *Player) PlayedBefore() bool
- func (p *Player) Port() int
- func (p *Player) Protocol() int
- func (p *Player) SetDisplayName(displayName string)
- func (p *Player) SetGameMode(gameMode Gamemode)
- func (p *Player) SetIp(ip string)
- func (p *Player) SetLoggedIn(loggedIn bool)
- func (p *Player) SetPlayedBefore(playedBefore bool)
- func (p *Player) SetPort(port int)
- func (p *Player) SetProtocol(protocol int)
- func (p *Player) SetSpawned(spawned bool)
- func (p *Player) SetUserName(userName string)
- func (p *Player) SetXuid(xuid string)
- func (p *Player) Spawned() bool
- func (p *Player) UserName() string
- func (p *Player) Xuid() string
- type Players
- type RakNetInterface
- func (r *RakNetInterface) Minecraft() *identifier.Minecraft
- func (r *RakNetInterface) Players() Players
- func (r *RakNetInterface) Server() *raknetServer.Server
- func (r *RakNetInterface) SetPlayers(players Players)
- func (r *RakNetInterface) SetServer(server *raknetServer.Server)
- func (r *RakNetInterface) Shutdown()
- type Server
- func (s *Server) DoTitleTick()
- func (s *Server) Gamemode() Gamemode
- func (s *Server) InitTicker()
- func (s *Server) MaxPlayers() int
- func (s *Server) Motd() string
- func (s *Server) Path() string
- func (s *Server) Port() int
- func (s *Server) Raknet() *RakNetInterface
- func (s *Server) Running() bool
- func (s *Server) SetGamemode(gamemode Gamemode)
- func (s *Server) SetMaxPlayers(max int)
- func (s *Server) SetMotd(motd string)
- func (s *Server) SetOnlinePlayersCount(count int)
- func (s *Server) SetPath(path string)
- func (s *Server) SetRaknet(raknet RakNetInterface)
- func (s *Server) SetRunning(running bool)
- func (s *Server) SetWorldName(name string)
- func (s *Server) Shutdown()
- func (s *Server) Start()
- func (s *Server) Tick()
- func (s *Server) WorldName() string
Constants ¶
View Source
const ( Survival = iota Creative Adventure Spectator View = Spectator )
View Source
const ( Name = "SpecterGO" Version = "0.1-ALPHA" )
Variables ¶
View Source
var (
TPS = 20
)
Functions ¶
func HelpCommand ¶
func InitCommands ¶
func InitCommands()
func InitDirectories ¶
func InitDirectories(path string)
func StopCommand ¶
Types ¶
type Player ¶
type Player struct {
// contains filtered or unexported fields
}
func (*Player) DisplayName ¶
func (*Player) IsAuthenticated ¶
func (*Player) PlayedBefore ¶
func (*Player) SetDisplayName ¶
func (*Player) SetGameMode ¶
func (*Player) SetLoggedIn ¶
func (*Player) SetPlayedBefore ¶
func (*Player) SetProtocol ¶
func (*Player) SetSpawned ¶
func (*Player) SetUserName ¶
type RakNetInterface ¶
type RakNetInterface struct {
// contains filtered or unexported fields
}
func NewRakNetInterface ¶
func NewRakNetInterface() RakNetInterface
func (*RakNetInterface) Minecraft ¶
func (r *RakNetInterface) Minecraft() *identifier.Minecraft
func (*RakNetInterface) Players ¶
func (r *RakNetInterface) Players() Players
func (*RakNetInterface) Server ¶
func (r *RakNetInterface) Server() *raknetServer.Server
func (*RakNetInterface) SetPlayers ¶
func (r *RakNetInterface) SetPlayers(players Players)
func (*RakNetInterface) SetServer ¶
func (r *RakNetInterface) SetServer(server *raknetServer.Server)
func (*RakNetInterface) Shutdown ¶
func (r *RakNetInterface) Shutdown()
type Server ¶
func (*Server) DoTitleTick ¶
func (s *Server) DoTitleTick()
func (*Server) InitTicker ¶
func (s *Server) InitTicker()
func (*Server) MaxPlayers ¶
func (*Server) Raknet ¶
func (s *Server) Raknet() *RakNetInterface
func (*Server) SetGamemode ¶
func (*Server) SetMaxPlayers ¶
func (*Server) SetOnlinePlayersCount ¶
func (*Server) SetRaknet ¶
func (s *Server) SetRaknet(raknet RakNetInterface)
func (*Server) SetRunning ¶
func (*Server) SetWorldName ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.