Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultFBCodeName = "Phoenix"
View Source
const DefaultFBHash = "ba7da8cc17265bc83be96a5c9f292e60784c7bed8757ee6bc84316e8671497e5"
View Source
const DefaultFBVersion = "1.4.0"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FBPlainToken ¶
type Session ¶
type Session struct {
Config *SessionConfig
// set/ set end callback
CmdSetCbFn func(X, Y, Z int)
CmdSetEndCbFn func(X, Y, Z int)
// contains filtered or unexported fields
}
func NewSession ¶
func NewSession(config *SessionConfig) *Session
type SessionConfig ¶
type SessionConfig struct {
Lang string `yaml:"lang" json:"lang"`
FBUserName string `yaml:"fb_username" json:"fb_username"`
FBPassword string `yaml:"fb_password" json:"fb_password"`
FBToken string `yaml:"fb_token" json:"fb_token"`
ServerCode string `yaml:"server_code" json:"server_code"`
ServerPasswd string `yaml:"server_passwd" json:"server_passwd"`
RespondUser string `yaml:"respond_user" json:"respond_user"`
MuteWorldChat bool `yaml:"mute_world_chat" json:"mute_world_chat"`
// when "iamDeveloper" is true, the following fields are used,
// otherwise, the fields are ignored (restore to default)
NoPyRPC bool `yaml:"no_py_rpc" json:"no_py_rpc"`
NBTConstructorEnabled bool `yaml:"nbt_constructor_enable" json:"nbt_constructor_enable"`
FBVersion string `yaml:"fb_version" json:"fb_version"`
FBHash string `yaml:"fb_hash" json:"fb_hash"`
FBCodeName string `yaml:"fb_codename" json:"fb_codename"`
// contains filtered or unexported fields
}
func NewConfig ¶
func NewConfig() *SessionConfig
func (*SessionConfig) IsDeveloper ¶
func (config *SessionConfig) IsDeveloper() bool
Click to show internal directories.
Click to hide internal directories.