summaryrefslogtreecommitdiffstats
path: root/src/Enchantments.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/Enchantments.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/Enchantments.h b/src/Enchantments.h
index 7581b87b5..0f23f8657 100644
--- a/src/Enchantments.h
+++ b/src/Enchantments.h
@@ -31,6 +31,7 @@ Serialization will never put zero-level enchantments into the stringspec and wil
*/
class cEnchantments
{
+friend class cEnchantmentSerializer;
public:
/// Individual enchantment IDs, corresponding to their NBT IDs ( http://www.minecraftwiki.net/wiki/Data_Values#Enchantment_IDs )
enum
@@ -96,11 +97,7 @@ public:
/// Returns true if a_Other doesn't contain exactly the same enchantments and levels
bool operator !=(const cEnchantments & a_Other) const;
- /// Writes the enchantments into the specified NBT writer; begins with the LIST tag of the specified name ("ench" or "StoredEnchantments")
- void WriteToNBTCompound(cFastNBTWriter & a_Writer, const AString & a_ListTagName) const;
-
- /// Reads the enchantments from the specified NBT list tag (ench or StoredEnchantments)
- void ParseFromNBT(const cParsedNBT & a_NBT, int a_EnchListTagIdx);
+
protected:
/// Maps enchantment ID -> enchantment level