types

package
v0.0.0-...-d1826b6 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2022 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

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
)

Variables

View Source
var ForwardedBrokSender chan string

Functions

func MakeTaskDisplayMode

func MakeTaskDisplayMode(mode byte) string

func MakeTaskType

func MakeTaskType(mode byte) string

func ParseDelayMode

func ParseDelayMode(mode string) byte

func ParseTaskDisplayMode

func ParseTaskDisplayMode(mode string) byte

func ParseTaskType

func ParseTaskType(mode string) byte

func StrDelayMode

func StrDelayMode(mode byte) string

Types

type Block

type Block struct {
	Name *string
	Data uint16
}

func CreateBlock

func CreateBlock(name string, data uint16) *Block

type ChestData

type ChestData []ChestSlot

type ChestSlot

type ChestSlot struct {
	Name   string
	Count  uint8
	Damage uint16
	Slot   uint8
}

type CommandBlockData

type CommandBlockData struct {
	Mode               uint32
	Command            string
	CustomName         string
	LastOutput         string
	TickDelay          int32
	ExecuteOnFirstTick bool //byte
	TrackOutput        bool //byte
	Conditional        bool
	NeedRedstone       bool
}

type Config

type Config struct {
	Address, Pattern string
}

type ConstBlock

type ConstBlock struct {
	Name string
	Data uint16
}

func (*ConstBlock) Take

func (req *ConstBlock) Take() *Block

type DelayConfig

type DelayConfig struct {
	Delay          int64
	DelayMode      byte
	DelayThreshold int
}

type Direction

type Direction string
const (
	Forward Direction = "forward"
	Back    Direction = "back"
	Right   Direction = "right"
	Left    Direction = "left"
	Up      Direction = "up"
	Down    Direction = "down"
)

type DoubleModule

type DoubleModule struct {
	Begin           Position
	End             Position
	Block, OldBlock *Block
	Entity          *Entity
}

type Entity

type Entity string

type FloatPosition

type FloatPosition struct {
	X, Y, Z float64
}

func (*FloatPosition) TransferInt

func (p *FloatPosition) TransferInt() Position

type GlobalConfig

type GlobalConfig struct {
	TaskCreationType byte
	TaskDisplayMode  byte
}

type Item

type Item struct {
	Name      string
	NetworkID uint16
	MaxDamage uint16
}

type MainConfig

type MainConfig struct {
	Execute               string
	Block, OldBlock       *ConstBlock
	End, Position         Position //Position=Begin
	Radius                int
	Length, Width, Height int
	MapX, MapZ, MapY      int
	Method, OldMethod     string
	Facing, Path, Shape   string
	ExcludeCommands       bool
	InvalidateCommands    bool
	Strict                bool
}

type Module

type Module struct {
	Block            *Block
	CommandBlockData *CommandBlockData
	//Entity *Entity
	ChestSlot *ChestSlot
	Point     Position
}

type Position

type Position struct {
	X, Y, Z int
}

func (Position) FromInt

func (p Position) FromInt(arr []int)

type RuntimeModule

type RuntimeModule struct {
	BlockRuntimeId   uint32 // The current total count of runtime ids didn't exceed 65536
	CommandBlockData *CommandBlockData
	ChestData        *ChestData
	Point            Position
}

type Target

type Target string
const (
	AllPlayers    Target = "@a"
	AllEntities   Target = "@e"
	NearestPlayer Target = "@p"
	RandomPlayer  Target = "@r"
	Self          Target = "@s"
)

Jump to

Keyboard shortcuts

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