3#include "mc/_HeaderOutputPredefine.h"
6#include "mc/client/particle/ParticleLayer.h"
7#include "mc/client/renderer/texture/TextureUVCoordinateSet.h"
8#include "mc/comprehensive/ParticleType.h"
9#include "mc/deps/core/math/Color.h"
10#include "mc/deps/core/math/Vec3.h"
11#include "mc/world/level/block/BrightnessPair.h"
12#include "mc/world/phys/AABB.h"
29 ::ll::TypedStorage<4, 4, float> mCameraOffset;
30 ::ll::TypedStorage<4, 4, int> mLifetime;
31 ::ll::TypedStorage<8, 96, ::TextureUVCoordinateSet> mTex;
32 ::ll::TypedStorage<4, 4, float> mU0;
33 ::ll::TypedStorage<4, 4, float> mV0;
34 ::ll::TypedStorage<4, 4, int> mAge;
35 ::ll::TypedStorage<4, 4, int> mTicksSinceLastUpdate;
36 ::ll::TypedStorage<4, 4, float> mSize;
37 ::ll::TypedStorage<4, 4, float> mGravity;
38 ::ll::TypedStorage<4, 16, ::mce::Color> mColor;
39 ::ll::TypedStorage<4, 16, ::mce::Color> mVanillaLightColor;
40 ::ll::TypedStorage<1, 2, ::BrightnessPair> mAmbientLight;
41 ::ll::TypedStorage<4, 4, ::ParticleType> mType;
42 ::ll::TypedStorage<4, 4, ::ParticleLayer> mLayer;
43 ::ll::TypedStorage<1, 1, bool> mUnlit;
44 ::ll::TypedStorage<4, 4, float> mRoll;
45 ::ll::TypedStorage<4, 4, float> mORoll;
46 ::ll::TypedStorage<4, 4, float> mXa;
47 ::ll::TypedStorage<4, 4, float> mZa;
48 ::ll::TypedStorage<4, 4, float> mXa2;
49 ::ll::TypedStorage<4, 4, float> mZa2;
50 ::ll::TypedStorage<4, 4, float> mYa;
51 ::ll::TypedStorage<8, 8, ::BlockSource*> mRegion;
52 ::ll::TypedStorage<4, 12, ::Vec3> mPosDelta;
53 ::ll::TypedStorage<4, 12, ::Vec3> mPos;
54 ::ll::TypedStorage<4, 12, ::Vec3> mPosOld;
55 ::ll::TypedStorage<1, 1, bool> mNoPhysics;
56 ::ll::TypedStorage<1, 1, bool> mOnGround;
57 ::ll::TypedStorage<1, 1, bool> mVertexDataInitialized;
58 ::ll::TypedStorage<4, 24, ::AABB> mBB;
64 virtual ~Particle() =
default;
66 virtual void init(::Vec3
const& pos, ::Vec3
const& dir,
int scale, ::ParticleEngine& engine) = 0;
68 virtual void addTagData(::CompoundTag
const& tag);
70 virtual void normalTick();
72 virtual void tessellate(::ParticleRenderContext
const& renderContext);
74 virtual ::mce::TexturePtr
const& getParticleTexture()
const;
76 virtual void setEmittingEntity(::Actor& entity);
78 virtual bool _shouldUpdateVertexData(
float sqDist);
80 virtual void _calculateAmbientLight(
float a);
86 MCAPI
void move(::Vec3
const& delta);
92 MCAPI
static void initStaticResources(::std::shared_ptr<::mce::TextureGroup> textureGroup);
98 MCAPI static ::mce::TexturePtr& FLAME_ATLAS();
100 MCAPI static ::mce::TexturePtr& FORCEFIELD_ATLAS();
102 MCAPI static ::mce::TexturePtr& ITEMS_ATLAS();
104 MCAPI static ::mce::TexturePtr& PARTICLE_ATLAS();
106 MCAPI static ::mce::TexturePtr& TERRAIN_ATLAS();
112 MCFOLD
void $addTagData(::CompoundTag
const& tag);
114 MCAPI
void $normalTick();
116 MCAPI
void $tessellate(::ParticleRenderContext
const& renderContext);
118 MCAPI ::mce::TexturePtr
const& $getParticleTexture()
const;
120 MCFOLD
void $setEmittingEntity(::Actor& entity);
122 MCAPI
bool $_shouldUpdateVertexData(
float sqDist);
124 MCAPI
void $_calculateAmbientLight(
float a);
Definition BlockSource.h:71
Definition CompoundTag.h:18
Definition ParticleEngine.h:5
Definition TextureGroup.h:7
Definition TexturePtr.h:7
Definition ParticleRenderContext.h:5