Documentation ¶
Index ¶
Constants ¶
View Source
const MojangAPIendpoint = "https://api.mojang.com"
View Source
const MojangSessionAPIendpoint = "https://sessionserver.mojang.com"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DeathMesasgeHandler ¶
func NewDeathMesasgeHandler ¶
func NewDeathMesasgeHandler() (DeathMesasgeHandler, error)
func (DeathMesasgeHandler) Match ¶
func (d DeathMesasgeHandler) Match(message string) bool
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles minecraft server process
func (*Handler) Interrupt ¶
func (m *Handler) Interrupt()
Interrupt send keyboard interrupt to the minecraft server
func (*Handler) Pipes ¶
func (m *Handler) Pipes() (stdin io.WriteCloser, stderr io.ReadCloser)
Pipes returns minecrafts process stdin / stderr pipes
these pipes are automatically closed when the process killed by Handler.Stop()
type Message ¶
type Message struct { Type MessageType Message string // when Message type is Join / Left, User will have Join or Left user name User string IsSecure bool }
type MessageType ¶
type MessageType int
const ( MessageTypeJoin MessageType = iota MessageTypeLeft MessageTypeDeath MessageTypeMessage MessageTypeServermessage MessageTypeReachedTheAdvancement MessageTypeThreadINFO MessageTypeDifficultySet MessageTypeOther )
type Profile ¶
type Profile struct { ID string `json:"id"` Name string `json:"name"` Properties []Properties `json:"properties"` }
func GetProfile ¶
func (*Profile) UnmarshalJSON ¶
type Properties ¶
type Properties struct { Name string `json:"name"` TextureValue TexuturesValue `json:"value"` }
Click to show internal directories.
Click to hide internal directories.