block_actor

package
v0.0.0-...-40c1629 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockActorConverter

type BlockActorConverter struct {
	// contains filtered or unexported fields
}

func NewBlockActorConverter

func NewBlockActorConverter(bc *world_block.BlockConverter) *BlockActorConverter

NewBlockActorConverter 创建方块实体 NBT 转换器。

NewBlockActorConverter creates a block actor NBT converter.

func (*BlockActorConverter) BlockConverter

func (c *BlockActorConverter) BlockConverter() *world_block.BlockConverter

BlockConverter 返回底层方块转换器。

BlockConverter returns the underlying block converter.

func (*BlockActorConverter) ConvertClientNBT

func (c *BlockActorConverter) ConvertClientNBT(src map[string]interface{}) (dst map[string]interface{}, err error)

ConvertClientNBT 按客户端到服务端方向转换方块实体 NBT。

ConvertClientNBT converts block actor NBT from client to server.

func (*BlockActorConverter) ConvertClientNBTBytes

func (c *BlockActorConverter) ConvertClientNBTBytes(src []byte) ([]byte, error)

ConvertClientNBTBytes 按客户端到服务端方向转换连续的网络 NBT 字节。

ConvertClientNBTBytes converts consecutive network NBT bytes from client to server.

func (*BlockActorConverter) ConvertNBTBytes

func (c *BlockActorConverter) ConvertNBTBytes(src []byte, convert func(map[string]interface{}) (map[string]interface{}, error)) ([]byte, error)

ConvertNBTBytes 循环转换 src 中连续排列的 NetworkLittleEndian NBT。

ConvertNBTBytes converts consecutive NetworkLittleEndian NBT values in src.

func (*BlockActorConverter) ConvertNetEaseNBT

func (c *BlockActorConverter) ConvertNetEaseNBT(src map[string]interface{}) (dst map[string]interface{}, err error)

ConvertNetEaseNBT 把网易 __tag 方块实体转换为标准 NBT 字段。

ConvertNetEaseNBT converts a NetEase __tag block actor into standard NBT fields.

func (*BlockActorConverter) ConvertServerNBT

func (c *BlockActorConverter) ConvertServerNBT(src map[string]interface{}) (dst map[string]interface{}, err error)

ConvertServerNBT 按服务端到客户端方向转换方块实体 NBT。

ConvertServerNBT converts block actor NBT from server to client.

func (*BlockActorConverter) ConvertServerNBTBytes

func (c *BlockActorConverter) ConvertServerNBTBytes(src []byte) ([]byte, error)

ConvertServerNBTBytes 按服务端到客户端方向转换连续的网络 NBT 字节。

ConvertServerNBTBytes converts consecutive network NBT bytes from server to client.

func (*BlockActorConverter) ConvertStandardNBT

func (c *BlockActorConverter) ConvertStandardNBT(src map[string]interface{}) (dst map[string]interface{}, err error)

ConvertStandardNBT 把标准 NBT 方块实体转换为网易 __tag 字段。

ConvertStandardNBT converts a standard block actor NBT into the NetEase __tag field.

Jump to

Keyboard shortcuts

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