general

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BannerPatterns

type BannerPatterns struct {
	Color   int32  `nbt:"Color"`   // TAG_Int(4) = 0
	Pattern string `nbt:"Pattern"` // TAG_String(8) = ""
}

描述 旗帜 中所有的图案组合

func (*BannerPatterns) FromNBT

func (b *BannerPatterns) FromNBT(x map[string]any)

func (*BannerPatterns) Marshal

func (b *BannerPatterns) Marshal(r marshal.IO)

func (*BannerPatterns) ToNBT

func (b *BannerPatterns) ToNBT() map[string]any

type BeehiveOccupants

type BeehiveOccupants struct {
	ActorIdentifier string         `nbt:"ActorIdentifier"` // TAG_String(8) = "minecraft:bee<>"
	SaveData        map[string]any `nbt:"SaveData"`        // TAG_Compound(10)
	TicksLeftToStay int32          `nbt:"TicksLeftToStay"` // TAG_Int(4) = 0
}

描述 蜂巢 或 蜂箱 内的实体

func (*BeehiveOccupants) FromNBT

func (b *BeehiveOccupants) FromNBT(x map[string]any)

func (*BeehiveOccupants) Marshal

func (b *BeehiveOccupants) Marshal(r marshal.IO)

func (*BeehiveOccupants) ToNBT

func (b *BeehiveOccupants) ToNBT() map[string]any

type ChemistryTableItem

type ChemistryTableItem struct {
	ItemId    int32  `nbt:"itemId"`    // TAG_Int(4) = 0
	ItemAux   int16  `nbt:"itemAux"`   // TAG_Short(3) = 0
	ItemStack uint32 `nbt:"itemStack"` // * TAG_Byte(1) = 0
}

描述 化合物创建器 存放的物品

func (*ChemistryTableItem) CheckExist

func (c *ChemistryTableItem) CheckExist(x map[string]any) (exist bool)

检查 x 是否存在 ChemistryTableItem 中记录的所有数据

func (*ChemistryTableItem) FromNBT

func (c *ChemistryTableItem) FromNBT(x map[string]any)

func (*ChemistryTableItem) Marshal

func (c *ChemistryTableItem) Marshal(r marshal.IO)

func (*ChemistryTableItem) ToNBT

func (c *ChemistryTableItem) ToNBT() map[string]any

type Frame

type Frame struct {
	Item           marshal.ItemInstance `nbt:"Item"`           // TAG_Compound(10)
	ItemDropChance float32              `nbt:"ItemDropChance"` // TAG_Float(6) = 1
	ItemRotation   float32              `nbt:"ItemRotation"`   // TAG_Float(6) = 0
}

描述 物品展示框 和 荧光物品展示框 的共用字段

func (*Frame) CheckExist

func (f *Frame) CheckExist(x map[string]any) (exist bool)

检查 x 是否存在 Frame 中记录的所有数据

func (*Frame) FromNBT

func (f *Frame) FromNBT(x map[string]any)

func (*Frame) Marshal

func (f *Frame) Marshal(r marshal.IO)

func (*Frame) ToNBT

func (f *Frame) ToNBT() map[string]any

type Global

type Global struct {
	IsMovable      byte   `nbt:"isMovable"`      // TAG_Byte(1) = 1
	CustomName     string `nbt:"CustomName"`     // TAG_String(8) = ""
	UserCustomData string `nbt:"UserCustomData"` // TAG_String(8) = ""
}

描述一个方块实体的通用字段

func (*Global) FromNBT

func (g *Global) FromNBT(x map[string]any)

func (*Global) Marshal

func (g *Global) Marshal(r marshal.IO)

func (*Global) ToNBT

func (g *Global) ToNBT() map[string]any

type Loot

type Loot struct {
	LootTable     string `nbt:"LootTable"`     // TAG_String(8) = ""
	LootTableSeed int64  `nbt:"LootTableSeed"` // * TAG_Int(4) = 0
}

描述部分容器的 战利品表

func (*Loot) FromNBT

func (l *Loot) FromNBT(x map[string]any)

func (*Loot) Marshal

func (l *Loot) Marshal(r marshal.IO)

func (*Loot) ToNBT

func (l *Loot) ToNBT() map[string]any

type MultiSpawnData

type MultiSpawnData struct {
	Data []SpawnData // TAG_List[TAG_Compound] (9[10])
}

描述多个 SpawnData

func (*MultiSpawnData) FromNBT

func (m *MultiSpawnData) FromNBT(x []any)

func (*MultiSpawnData) Marshal

func (m *MultiSpawnData) Marshal(r marshal.IO)

func (*MultiSpawnData) ToNBT

func (m *MultiSpawnData) ToNBT() []any

type RedstoneBlock

type RedstoneBlock struct {
	Powered byte `nbt:"powered"` // TAG_Byte(1) = 0
}

描述一个 红石类 方块实体的通用字段

func (*RedstoneBlock) FromNBT

func (rb *RedstoneBlock) FromNBT(x map[string]any)

func (*RedstoneBlock) Marshal

func (rb *RedstoneBlock) Marshal(r marshal.IO)

func (*RedstoneBlock) ToNBT

func (rb *RedstoneBlock) ToNBT() map[string]any

type SignText

type SignText struct {
	HideGlowOutline   byte   `nbt:"HideGlowOutline"`   // Not used; TAG_Byte(1) = 0
	IgnoreLighting    byte   `nbt:"IgnoreLighting"`    // TAG_Byte(1) = 0
	PersistFormatting byte   `nbt:"PersistFormatting"` // TAG_Byte(1) = 1
	SignTextColor     int32  `nbt:"SignTextColor"`     // TAG_Int(4) = -16777216
	Text              string `nbt:"Text"`              // TAG_String(8) = ""
	TextOwner         string `nbt:"TextOwner"`         // TAG_String(8) = ""
}

描述 告示牌 中的一个复用字段

func (*SignText) FromNBT

func (s *SignText) FromNBT(x map[string]any)

func (*SignText) Marshal

func (s *SignText) Marshal(r marshal.IO)

func (*SignText) ToNBT

func (s *SignText) ToNBT() map[string]any

type SpawnData

type SpawnData struct {
	Properties map[string]any `nbt:"Properties"` // TAG_Compound(10)
	TypeID     string         `nbt:"TypeId"`     // TAG_String(8)
	Weight     int32          `nbt:"Weight"`     // TAG_Int(4)
}

描述 刷怪笼 中的一个复用字段

func (*SpawnData) FromNBT

func (s *SpawnData) FromNBT(x map[string]any)

func (*SpawnData) Marshal

func (s *SpawnData) Marshal(r marshal.IO)

func (*SpawnData) ToNBT

func (s *SpawnData) ToNBT() map[string]any

Jump to

Keyboard shortcuts

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