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 ¶
检查 x 是否存在 Frame 中记录的所有数据
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) = "" }
描述一个方块实体的通用字段
type Loot ¶
type Loot struct { LootTable string `nbt:"LootTable"` // TAG_String(8) = "" LootTableSeed int64 `nbt:"LootTableSeed"` // * TAG_Int(4) = 0 }
描述部分容器的 战利品表
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) = "" }
描述 告示牌 中的一个复用字段
Click to show internal directories.
Click to hide internal directories.