summaryrefslogtreecommitdiffstats
path: root/src/WorldStorage/FireworksSerializer.h
diff options
context:
space:
mode:
authorTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-01 22:26:43 +0100
committerTiger Wang <ziwei.tiger@hotmail.co.uk>2014-03-09 13:48:58 +0100
commit124fc8bc664f96158b4db28372da62896d1db211 (patch)
treed3098f08070471792e431421c993da8f19ecf192 /src/WorldStorage/FireworksSerializer.h
parentAdded extra dye rules to crafting.txt (diff)
downloadcuberite-124fc8bc664f96158b4db28372da62896d1db211.tar
cuberite-124fc8bc664f96158b4db28372da62896d1db211.tar.gz
cuberite-124fc8bc664f96158b4db28372da62896d1db211.tar.bz2
cuberite-124fc8bc664f96158b4db28372da62896d1db211.tar.lz
cuberite-124fc8bc664f96158b4db28372da62896d1db211.tar.xz
cuberite-124fc8bc664f96158b4db28372da62896d1db211.tar.zst
cuberite-124fc8bc664f96158b4db28372da62896d1db211.zip
Diffstat (limited to 'src/WorldStorage/FireworksSerializer.h')
-rw-r--r--src/WorldStorage/FireworksSerializer.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/WorldStorage/FireworksSerializer.h b/src/WorldStorage/FireworksSerializer.h
index 37fb6c883..5b87bafdb 100644
--- a/src/WorldStorage/FireworksSerializer.h
+++ b/src/WorldStorage/FireworksSerializer.h
@@ -64,15 +64,19 @@ public:
/** Writes firework NBT data to a Writer object */
static void WriteToNBTCompound(const cFireworkItem & a_FireworkItem, cFastNBTWriter & a_Writer, const ENUM_ITEM_ID a_Type);
+
/** Reads NBT data from a NBT object and populates a FireworkItem with it */
static void ParseFromNBT(cFireworkItem & a_FireworkItem, const cParsedNBT & a_NBT, int a_TagIdx, const ENUM_ITEM_ID a_Type);
/** Converts the firework's vector of colours into a string of values separated by a semicolon */
static AString ColoursToString(const cFireworkItem & a_FireworkItem);
+
/** Parses a string containing encoded firework colours and populates a FireworkItem with it */
static void ColoursFromString(const AString & a_String, cFireworkItem & a_FireworkItem);
+
/** Converts the firework's vector of fade colours into a string of values separated by a semicolon */
static AString FadeColoursToString(const cFireworkItem & a_FireworkItem);
+
/** Parses a string containing encoded firework fade colours and populates a FireworkItem with it */
static void FadeColoursFromString(const AString & a_String, cFireworkItem & a_FireworkItem);