Cuberite
A lightweight, fast and extensible game server for Minecraft
EnchantmentSerializer.h
Go to the documentation of this file.
1 
2 #pragma once
3 
4 class cEnchantments;
5 class cFastNBTWriter;
6 class cParsedNBT;
7 
8 
9 
10 
11 
13 {
14 
16  void WriteToNBTCompound(const cEnchantments & a_Enchantments, cFastNBTWriter & a_Writer, const AString & a_ListTagName);
17 
19  void ParseFromNBT(cEnchantments & a_Enchantments, const cParsedNBT & a_NBT, int a_EnchListTagIdx);
20 
21 };
22 
23 
24 
25 
std::string AString
Definition: StringUtils.h:11
void ParseFromNBT(cEnchantments &a_Enchantments, const cParsedNBT &a_NBT, int a_EnchListTagIdx)
Reads the enchantments from the specified NBT list tag (ench or StoredEnchantments)
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...
Class that stores item enchantments or stored-enchantments The enchantments may be serialized to a st...
Definition: Enchantments.h:42
Parses and contains the parsed data Also implements data accessor functions for tree traversal and va...
Definition: FastNBT.h:153