Documentation ¶
Index ¶
- Constants
- func MakeTaskDisplayMode(mode byte) string
- func MakeTaskType(mode byte) string
- func ParseDelayMode(mode string) byte
- func ParseTaskDisplayMode(mode string) byte
- func ParseTaskType(mode string) byte
- func StrDelayMode(mode byte) string
- type Block
- type ChestData
- type ChestSlot
- type CommandBlockData
- type CommandOutputMessage
- type ConstBlock
- type DelayConfig
- type DoubleModule
- type Entity
- type FloatPosition
- type Function
- type FunctionChainItem
- type GlobalConfig
- type MainConfig
- type Module
- type PluginBridge
- type Position
Constants ¶
View Source
const ( DelayModeContinuous = 0 DelayModeDiscrete = 1 DelayModeNone = 2 DelayModeInvalid = 100 )
View Source
const ( TaskTypeSync = 0 TaskTypeAsync = 1 TaskTypeInvalid = 100 )
View Source
const ( TaskDisplayYes = 1 TaskDisplayNo = 0 TaskDisplayInvalid = 30 )
View Source
const ( FunctionTypeSimple = 0 // End of simple chain FunctionTypeContinue = 1 // Simple chain FunctionTypeRegular = 2 )
View Source
const ( SimpleFunctionArgumentString = 0 SimpleFunctionArgumentDecider = 1 SimpleFunctionArgumentInt = 2 )
Variables ¶
This section is empty.
Functions ¶
func MakeTaskDisplayMode ¶
func MakeTaskType ¶
func ParseDelayMode ¶
func ParseTaskDisplayMode ¶
func ParseTaskType ¶
func StrDelayMode ¶
Types ¶
type Block ¶
func CreateBlock ¶
type CommandBlockData ¶
type CommandOutputMessage ¶
type ConstBlock ¶
func (*ConstBlock) Take ¶
func (req *ConstBlock) Take() *Block
type DelayConfig ¶
type DoubleModule ¶
type FloatPosition ¶
type FloatPosition struct {
X, Y, Z float64
}
func (*FloatPosition) TransferInt ¶
func (p *FloatPosition) TransferInt() Position
type FunctionChainItem ¶
type GlobalConfig ¶
type MainConfig ¶
type Module ¶
type Module struct { Block *Block CommandBlockData *CommandBlockData ChestData *ChestData //Entity *Entity Point Position }
type PluginBridge ¶
type PluginBridge interface { ConvertFunctionChainItemList(list map[string]FunctionChainItem) interface{} RegisterBuilder(name string, function func(config MainConfig, blc chan *Module) error) bool // --> function.RegisterFunction RegisterFunction(function Function) // --> function.RegisterEnum RegisterEnum(desc string, parser func(string) byte, inv byte) int // --> command.Tellraw -> command.SendChat Tellraw(message string) error // --> command.SendChat SendChat(content string) error // --> command.SendSizukanaCommand SendCommand(command string) error // "CB" stands for callback. SendCommandCB(command string, cb func([]CommandOutputMessage, string)) SendWSCommandCB(command string, cb func([]CommandOutputMessage, string)) // 1st arg: username, 2nd arg: content SubscribeChat(cb func(string, string)) }
Click to show internal directories.
Click to hide internal directories.