Cuberite
A lightweight, fast and extensible game server for Minecraft
Functions
EnchantmentSerializer Namespace Reference

Functions

void ParseFromNBT (cEnchantments &a_Enchantments, const cParsedNBT &a_NBT, int a_EnchListTagIdx)
 Reads the enchantments from the specified NBT list tag (ench or StoredEnchantments) More...
 
void WriteToNBTCompound (const cEnchantments &a_Enchantments, cFastNBTWriter &a_Writer, const AString &a_ListTagName)
 Writes the enchantments into the specified NBT writer; begins with the LIST tag of the specified name ("ench" or "StoredEnchantments") More...
 

Function Documentation

◆ ParseFromNBT()

void EnchantmentSerializer::ParseFromNBT ( cEnchantments a_Enchantments,
const cParsedNBT a_NBT,
int  a_EnchListTagIdx 
)

Reads the enchantments from the specified NBT list tag (ench or StoredEnchantments)

Definition at line 28 of file EnchantmentSerializer.cpp.

◆ WriteToNBTCompound()

void EnchantmentSerializer::WriteToNBTCompound ( const cEnchantments a_Enchantments,
cFastNBTWriter a_Writer,
const AString a_ListTagName 
)

Writes the enchantments into the specified NBT writer; begins with the LIST tag of the specified name ("ench" or "StoredEnchantments")

Definition at line 8 of file EnchantmentSerializer.cpp.