std::vector< int > m_FadeColours
static void WriteToNBTCompound(const cFireworkItem &a_FireworkItem, cFastNBTWriter &a_Writer, const ENUM_ITEM_ID a_Type)
Writes firework NBT data to a Writer object.
Parses and contains the parsed data Also implements data accessor functions for tree traversal and va...
unsigned char NIBBLETYPE
The datatype used by nibbledata (meta, light, skylight)
short m_FlightTimeInTicks
static void ColoursFromString(const AString &a_String, cFireworkItem &a_FireworkItem)
Parses a string containing encoded firework colours 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)
Reads NBT data from a NBT object and populates a FireworkItem with it.
bool IsEqualTo(const cFireworkItem &a_Item) const
static void FadeColoursFromString(const AString &a_String, cFireworkItem &a_FireworkItem)
Parses a string containing encoded firework fade colours and populates a FireworkItem with it...
static int GetVanillaColourCodeFromDye(NIBBLETYPE a_DyeMeta)
Returns a colour code for fireworks used by the network code.
void CopyFrom(const cFireworkItem &a_Item)
static AString ColoursToString(const cFireworkItem &a_FireworkItem)
Converts the firework's vector of colours into a string of values separated by a semicolon.
static AString FadeColoursToString(const cFireworkItem &a_FireworkItem)
Converts the firework's vector of fade colours into a string of values separated by a semicolon...
std::vector< int > m_Colours