Botcraft
1.21.5
Loading...
Searching...
No Matches
DustColorTransitionOptions.hpp
Go to the documentation of this file.
1
#if PROTOCOL_VERSION > 754
/* > 1.16.5 */
2
#pragma once
3
4
#include "
protocolCraft/Types/Particles/ParticleOptions.hpp
"
5
6
#if PROTOCOL_VERSION < 768
/* < 1.21.2 */
7
#include <array>
8
#endif
9
10
namespace
ProtocolCraft
11
{
12
class
DustColorTransitionOptions
:
public
ParticleOptions
13
{
14
#if PROTOCOL_VERSION < 768
/* < 1.21.2 */
15
SERIALIZED_FIELD
(FromColor, std::array<float, 3>);
16
#else
17
SERIALIZED_FIELD
(FromColor,
int
);
18
#endif
19
#if PROTOCOL_VERSION < 766
/* < 1.20.5 */
20
SERIALIZED_FIELD
(Scale,
float
);
21
#endif
22
#if PROTOCOL_VERSION < 768
/* < 1.21.2 */
23
SERIALIZED_FIELD
(ToColor, std::array<float, 3>);
24
#else
25
SERIALIZED_FIELD
(ToColor,
int
);
26
#endif
27
#if PROTOCOL_VERSION > 765
/* > 1.20.4 */
28
SERIALIZED_FIELD
(Scale,
float
);
29
#endif
30
31
DECLARE_READ_WRITE_SERIALIZE
;
32
};
33
}
34
#endif
SERIALIZED_FIELD
#define SERIALIZED_FIELD(Name,...)
Definition
AutoSerializedMacros.hpp:77
ParticleOptions.hpp
ProtocolCraft::DustColorTransitionOptions
Definition
DustColorTransitionOptions.hpp:13
ProtocolCraft::DustColorTransitionOptions::SERIALIZED_FIELD
SERIALIZED_FIELD(FromColor, int)
ProtocolCraft::DustColorTransitionOptions::SERIALIZED_FIELD
SERIALIZED_FIELD(Scale, float)
ProtocolCraft::DustColorTransitionOptions::SERIALIZED_FIELD
SERIALIZED_FIELD(ToColor, int)
ProtocolCraft::DustColorTransitionOptions::DECLARE_READ_WRITE_SERIALIZE
DECLARE_READ_WRITE_SERIALIZE
Definition
DustColorTransitionOptions.hpp:31
ProtocolCraft::ParticleOptions
Definition
ParticleOptions.hpp:8
ProtocolCraft
Definition
ItemUtilities.hpp:8
protocolCraft
include
protocolCraft
Types
Particles
DustColorTransitionOptions.hpp
Generated by
1.9.8