command

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IDCreateConstantString uint16 = iota + 1

	IDPlaceBlockWithBlockStates
	IDAddInt16ZValue0
	IDPlaceBlock
	IDAddZValue0
	IDNOP

	IDAddInt32ZValue0
	IDPlaceBlockWithBlockStatesDeprecated
	IDAddXValue
	IDSubtractXValue
	IDAddYValue
	IDSubtractYValue
	IDAddZValue
	IDSubtractZValue
	IDAddInt16XValue
	IDAddInt32XValue
	IDAddInt16YValue
	IDAddInt32YValue
	IDAddInt16ZValue
	IDAddInt32ZValue
	IDSetCommandBlockData
	IDPlaceBlockWithCommandBlockData
	IDAddInt8XValue
	IDAddInt8YValue
	IDAddInt8ZValue
	IDUseRuntimeIDPool
	IDPlaceRuntimeBlock
	IDPlaceRuntimeBlockWithUint32RuntimeID
	IDPlaceRuntimeBlockWithCommandBlockData
	IDPlaceRuntimeBlockWithCommandBlockDataAndUint32RuntimeID
	IDPlaceCommandBlockWithCommandBlockData
	IDPlaceRuntimeBlockWithChestData
	IDPlaceRuntimeBlockWithChestDataAndUint32RuntimeID
	IDAssignDebugData
	IDPlaceBlockWithChestData
	IDPlaceBlockWithNBTData
	IDTerminate = 88
)

Variables

View Source
var BDumpCommandPool = map[uint16]CommandFunc{
	IDCreateConstantString:                  func() Command { return &CreateConstantString{} },
	IDPlaceBlockWithBlockStates:             func() Command { return &PlaceBlockWithBlockStates{} },
	IDAddInt16ZValue0:                       func() Command { return &AddInt16ZValue0{} },
	IDPlaceBlock:                            func() Command { return &PlaceBlock{} },
	IDAddZValue0:                            func() Command { return &AddZValue0{} },
	IDNOP:                                   func() Command { return &NoOperation{} },
	IDAddInt32ZValue0:                       func() Command { return &AddInt32ZValue0{} },
	IDPlaceBlockWithBlockStatesDeprecated:   func() Command { return &PlaceBlockWithBlockStatesDeprecated{} },
	IDAddXValue:                             func() Command { return &AddXValue{} },
	IDSubtractXValue:                        func() Command { return &SubtractXValue{} },
	IDAddYValue:                             func() Command { return &AddYValue{} },
	IDSubtractYValue:                        func() Command { return &SubtractYValue{} },
	IDAddZValue:                             func() Command { return &AddZValue{} },
	IDSubtractZValue:                        func() Command { return &SubtractZValue{} },
	IDAddInt16XValue:                        func() Command { return &AddInt16XValue{} },
	IDAddInt32XValue:                        func() Command { return &AddInt32XValue{} },
	IDAddInt16YValue:                        func() Command { return &AddInt16YValue{} },
	IDAddInt32YValue:                        func() Command { return &AddInt32YValue{} },
	IDAddInt16ZValue:                        func() Command { return &AddInt16ZValue{} },
	IDAddInt32ZValue:                        func() Command { return &AddInt32ZValue{} },
	IDSetCommandBlockData:                   func() Command { return &SetCommandBlockData{} },
	IDPlaceBlockWithCommandBlockData:        func() Command { return &PlaceBlockWithCommandBlockData{} },
	IDAddInt8XValue:                         func() Command { return &AddInt8XValue{} },
	IDAddInt8YValue:                         func() Command { return &AddInt8YValue{} },
	IDAddInt8ZValue:                         func() Command { return &AddInt8ZValue{} },
	IDUseRuntimeIDPool:                      func() Command { return &UseRuntimeIDPool{} },
	IDPlaceRuntimeBlock:                     func() Command { return &PlaceRuntimeBlock{} },
	IDPlaceRuntimeBlockWithUint32RuntimeID:  func() Command { return &PlaceRuntimeBlockWithUint32RuntimeID{} },
	IDPlaceRuntimeBlockWithCommandBlockData: func() Command { return &PlaceRuntimeBlockWithCommandBlockData{} },
	IDPlaceRuntimeBlockWithCommandBlockDataAndUint32RuntimeID: func() Command { return &PlaceRuntimeBlockWithCommandBlockDataAndUint32RuntimeID{} },
	IDPlaceCommandBlockWithCommandBlockData:                   func() Command { return &PlaceCommandBlockWithCommandBlockData{} },
	IDPlaceRuntimeBlockWithChestData:                          func() Command { return &PlaceRuntimeBlockWithChestData{} },
	IDPlaceRuntimeBlockWithChestDataAndUint32RuntimeID:        func() Command { return &PlaceRuntimeBlockWithChestDataAndUint32RuntimeID{} },
	IDAssignDebugData:         func() Command { return &AssignDebugData{} },
	IDPlaceBlockWithChestData: func() Command { return &PlaceBlockWithChestData{} },
	IDPlaceBlockWithNBTData:   func() Command { return &PlaceBlockWithNBTData{} },
	IDTerminate:               func() Command { return &Terminate{} },
}

BDumpCommandPool ..

Functions

This section is empty.

Types

type AddInt8XValue

type AddInt8XValue struct {
	DeltaX int8
}

func (*AddInt8XValue) ID

func (*AddInt8XValue) ID() uint16

func (*AddInt8XValue) Marshal

func (a *AddInt8XValue) Marshal(io encoding.IO)

func (*AddInt8XValue) Name

func (*AddInt8XValue) Name() string

type AddInt8YValue

type AddInt8YValue struct {
	DeltaY int8
}

func (*AddInt8YValue) ID

func (*AddInt8YValue) ID() uint16

func (*AddInt8YValue) Marshal

func (a *AddInt8YValue) Marshal(io encoding.IO)

func (*AddInt8YValue) Name

func (*AddInt8YValue) Name() string

type AddInt8ZValue

type AddInt8ZValue struct {
	DeltaZ int8
}

func (*AddInt8ZValue) ID

func (*AddInt8ZValue) ID() uint16

func (*AddInt8ZValue) Marshal

func (a *AddInt8ZValue) Marshal(io encoding.IO)

func (*AddInt8ZValue) Name

func (*AddInt8ZValue) Name() string

type AddInt16XValue

type AddInt16XValue struct {
	DeltaX int16
}

func (*AddInt16XValue) ID

func (*AddInt16XValue) ID() uint16

func (*AddInt16XValue) Marshal

func (a *AddInt16XValue) Marshal(io encoding.IO)

func (*AddInt16XValue) Name

func (*AddInt16XValue) Name() string

type AddInt16YValue

type AddInt16YValue struct {
	DeltaY int16
}

func (*AddInt16YValue) ID

func (*AddInt16YValue) ID() uint16

func (*AddInt16YValue) Marshal

func (a *AddInt16YValue) Marshal(io encoding.IO)

func (*AddInt16YValue) Name

func (*AddInt16YValue) Name() string

type AddInt16ZValue

type AddInt16ZValue struct {
	DeltaZ int16
}

func (*AddInt16ZValue) ID

func (*AddInt16ZValue) ID() uint16

func (*AddInt16ZValue) Marshal

func (a *AddInt16ZValue) Marshal(io encoding.IO)

func (*AddInt16ZValue) Name

func (*AddInt16ZValue) Name() string

type AddInt16ZValue0

type AddInt16ZValue0 struct {
	DeltaZ int16
}

func (*AddInt16ZValue0) ID

func (*AddInt16ZValue0) ID() uint16

func (*AddInt16ZValue0) Marshal

func (a *AddInt16ZValue0) Marshal(io encoding.IO)

func (*AddInt16ZValue0) Name

func (*AddInt16ZValue0) Name() string

type AddInt32XValue

type AddInt32XValue struct {
	DeltaX int32
}

func (*AddInt32XValue) ID

func (*AddInt32XValue) ID() uint16

func (*AddInt32XValue) Marshal

func (a *AddInt32XValue) Marshal(io encoding.IO)

func (*AddInt32XValue) Name

func (*AddInt32XValue) Name() string

type AddInt32YValue

type AddInt32YValue struct {
	DeltaY int32
}

func (*AddInt32YValue) ID

func (*AddInt32YValue) ID() uint16

func (*AddInt32YValue) Marshal

func (a *AddInt32YValue) Marshal(io encoding.IO)

func (*AddInt32YValue) Name

func (*AddInt32YValue) Name() string

type AddInt32ZValue

type AddInt32ZValue struct {
	DeltaZ int32
}

func (*AddInt32ZValue) ID

func (*AddInt32ZValue) ID() uint16

func (*AddInt32ZValue) Marshal

func (a *AddInt32ZValue) Marshal(io encoding.IO)

func (*AddInt32ZValue) Name

func (*AddInt32ZValue) Name() string

type AddInt32ZValue0

type AddInt32ZValue0 struct {
	DeltaZ int32
}

func (*AddInt32ZValue0) ID

func (*AddInt32ZValue0) ID() uint16

func (*AddInt32ZValue0) Marshal

func (a *AddInt32ZValue0) Marshal(io encoding.IO)

func (*AddInt32ZValue0) Name

func (*AddInt32ZValue0) Name() string

type AddXValue

type AddXValue struct{}

func (*AddXValue) ID

func (*AddXValue) ID() uint16

func (*AddXValue) Marshal

func (*AddXValue) Marshal(io encoding.IO)

func (*AddXValue) Name

func (*AddXValue) Name() string

type AddYValue

type AddYValue struct{}

func (*AddYValue) ID

func (*AddYValue) ID() uint16

func (*AddYValue) Marshal

func (*AddYValue) Marshal(io encoding.IO)

func (*AddYValue) Name

func (*AddYValue) Name() string

type AddZValue

type AddZValue struct{}

func (*AddZValue) ID

func (*AddZValue) ID() uint16

func (*AddZValue) Marshal

func (*AddZValue) Marshal(io encoding.IO)

func (*AddZValue) Name

func (*AddZValue) Name() string

type AddZValue0

type AddZValue0 struct{}

func (*AddZValue0) ID

func (*AddZValue0) ID() uint16

func (*AddZValue0) Marshal

func (*AddZValue0) Marshal(io encoding.IO)

func (*AddZValue0) Name

func (*AddZValue0) Name() string

type AssignDebugData

type AssignDebugData struct {
	Data []byte
}

func (*AssignDebugData) ID

func (*AssignDebugData) ID() uint16

func (*AssignDebugData) Marshal

func (a *AssignDebugData) Marshal(io encoding.IO)

func (*AssignDebugData) Name

func (*AssignDebugData) Name() string

type Command

type Command interface {
	ID() uint16
	Name() string
	Marshal(io encoding.IO)
}

Command ..

type CommandFunc

type CommandFunc func() Command

CommandFunc ..

type CreateConstantString

type CreateConstantString struct {
	ConstantString string
}

func (*CreateConstantString) ID

func (*CreateConstantString) Marshal

func (c *CreateConstantString) Marshal(io encoding.IO)

func (*CreateConstantString) Name

func (*CreateConstantString) Name() string

type NoOperation

type NoOperation struct{}

func (*NoOperation) ID

func (*NoOperation) ID() uint16

func (*NoOperation) Marshal

func (*NoOperation) Marshal(io encoding.IO)

func (*NoOperation) Name

func (*NoOperation) Name() string

type PlaceBlock

type PlaceBlock struct {
	BlockConstantStringID uint16
	BlockData             uint16
}

func (*PlaceBlock) ID

func (*PlaceBlock) ID() uint16

func (*PlaceBlock) Marshal

func (p *PlaceBlock) Marshal(io encoding.IO)

func (*PlaceBlock) Name

func (*PlaceBlock) Name() string

type PlaceBlockWithBlockStates

type PlaceBlockWithBlockStates struct {
	BlockConstantStringID       uint16
	BlockStatesConstantStringID uint16
}

func (*PlaceBlockWithBlockStates) ID

func (*PlaceBlockWithBlockStates) Marshal

func (p *PlaceBlockWithBlockStates) Marshal(io encoding.IO)

func (*PlaceBlockWithBlockStates) Name

type PlaceBlockWithBlockStatesDeprecated

type PlaceBlockWithBlockStatesDeprecated struct {
	BlockConstantStringID uint16
	BlockStatesString     string
}

func (*PlaceBlockWithBlockStatesDeprecated) ID

func (*PlaceBlockWithBlockStatesDeprecated) Marshal

func (*PlaceBlockWithBlockStatesDeprecated) Name

type PlaceBlockWithChestData

type PlaceBlockWithChestData struct {
	BlockConstantStringID uint16
	BlockData             uint16
	ChestSlots            []encoding.ChestSlot
}

func (*PlaceBlockWithChestData) ID

func (*PlaceBlockWithChestData) Marshal

func (p *PlaceBlockWithChestData) Marshal(io encoding.IO)

func (*PlaceBlockWithChestData) Name

type PlaceBlockWithCommandBlockData

type PlaceBlockWithCommandBlockData struct {
	BlockConstantStringID uint16
	BlockData             uint16
	CommandBlockData      encoding.CommandBlockData
}

func (*PlaceBlockWithCommandBlockData) ID

func (*PlaceBlockWithCommandBlockData) Marshal

func (*PlaceBlockWithCommandBlockData) Name

type PlaceBlockWithNBTData

type PlaceBlockWithNBTData struct {
	BlockConstantStringID       uint16
	BlockStatesConstantStringID uint16
	NBTData                     map[string]interface{}
}

func (*PlaceBlockWithNBTData) ID

func (*PlaceBlockWithNBTData) Marshal

func (p *PlaceBlockWithNBTData) Marshal(io encoding.IO)

func (*PlaceBlockWithNBTData) Name

func (*PlaceBlockWithNBTData) Name() string

type PlaceCommandBlockWithCommandBlockData

type PlaceCommandBlockWithCommandBlockData struct {
	BlockData        uint16
	CommandBlockData encoding.CommandBlockData
}

func (*PlaceCommandBlockWithCommandBlockData) ID

func (*PlaceCommandBlockWithCommandBlockData) Marshal

func (*PlaceCommandBlockWithCommandBlockData) Name

type PlaceRuntimeBlock

type PlaceRuntimeBlock struct {
	BlockRuntimeID uint16
}

func (*PlaceRuntimeBlock) ID

func (*PlaceRuntimeBlock) ID() uint16

func (*PlaceRuntimeBlock) Marshal

func (p *PlaceRuntimeBlock) Marshal(io encoding.IO)

func (*PlaceRuntimeBlock) Name

func (*PlaceRuntimeBlock) Name() string

type PlaceRuntimeBlockWithChestData

type PlaceRuntimeBlockWithChestData struct {
	BlockRuntimeID uint16
	ChestSlots     []encoding.ChestSlot
}

func (*PlaceRuntimeBlockWithChestData) ID

func (*PlaceRuntimeBlockWithChestData) Marshal

func (*PlaceRuntimeBlockWithChestData) Name

type PlaceRuntimeBlockWithChestDataAndUint32RuntimeID

type PlaceRuntimeBlockWithChestDataAndUint32RuntimeID struct {
	BlockRuntimeID uint32
	ChestSlots     []encoding.ChestSlot
}

func (*PlaceRuntimeBlockWithChestDataAndUint32RuntimeID) ID

func (*PlaceRuntimeBlockWithChestDataAndUint32RuntimeID) Marshal

func (*PlaceRuntimeBlockWithChestDataAndUint32RuntimeID) Name

type PlaceRuntimeBlockWithCommandBlockData

type PlaceRuntimeBlockWithCommandBlockData struct {
	BlockRuntimeID   uint16
	CommandBlockData encoding.CommandBlockData
}

func (*PlaceRuntimeBlockWithCommandBlockData) ID

func (*PlaceRuntimeBlockWithCommandBlockData) Marshal

func (*PlaceRuntimeBlockWithCommandBlockData) Name

type PlaceRuntimeBlockWithCommandBlockDataAndUint32RuntimeID

type PlaceRuntimeBlockWithCommandBlockDataAndUint32RuntimeID struct {
	BlockRuntimeID   uint32
	CommandBlockData encoding.CommandBlockData
}

func (*PlaceRuntimeBlockWithCommandBlockDataAndUint32RuntimeID) ID

func (*PlaceRuntimeBlockWithCommandBlockDataAndUint32RuntimeID) Marshal

func (*PlaceRuntimeBlockWithCommandBlockDataAndUint32RuntimeID) Name

type PlaceRuntimeBlockWithUint32RuntimeID

type PlaceRuntimeBlockWithUint32RuntimeID struct {
	BlockRuntimeID uint32
}

func (*PlaceRuntimeBlockWithUint32RuntimeID) ID

func (*PlaceRuntimeBlockWithUint32RuntimeID) Marshal

func (*PlaceRuntimeBlockWithUint32RuntimeID) Name

type SetCommandBlockData

type SetCommandBlockData struct {
	CommandBlockData encoding.CommandBlockData
}

func (*SetCommandBlockData) ID

func (*SetCommandBlockData) Marshal

func (s *SetCommandBlockData) Marshal(io encoding.IO)

func (*SetCommandBlockData) Name

func (*SetCommandBlockData) Name() string

type SubtractXValue

type SubtractXValue struct{}

func (*SubtractXValue) ID

func (*SubtractXValue) ID() uint16

func (*SubtractXValue) Marshal

func (*SubtractXValue) Marshal(io encoding.IO)

func (*SubtractXValue) Name

func (*SubtractXValue) Name() string

type SubtractYValue

type SubtractYValue struct{}

func (*SubtractYValue) ID

func (*SubtractYValue) ID() uint16

func (*SubtractYValue) Marshal

func (*SubtractYValue) Marshal(io encoding.IO)

func (*SubtractYValue) Name

func (*SubtractYValue) Name() string

type SubtractZValue

type SubtractZValue struct{}

func (*SubtractZValue) ID

func (*SubtractZValue) ID() uint16

func (*SubtractZValue) Marshal

func (*SubtractZValue) Marshal(io encoding.IO)

func (*SubtractZValue) Name

func (*SubtractZValue) Name() string

type Terminate

type Terminate struct{}

func (*Terminate) ID

func (*Terminate) ID() uint16

func (*Terminate) Marshal

func (*Terminate) Marshal(io encoding.IO)

func (*Terminate) Name

func (*Terminate) Name() string

type UseRuntimeIDPool

type UseRuntimeIDPool struct {
	PoolID uint8
}

func (*UseRuntimeIDPool) ID

func (*UseRuntimeIDPool) ID() uint16

func (*UseRuntimeIDPool) Marshal

func (p *UseRuntimeIDPool) Marshal(io encoding.IO)

func (*UseRuntimeIDPool) Name

func (*UseRuntimeIDPool) Name() string

Jump to

Keyboard shortcuts

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