aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/NetherPortalParticle.h
diff options
context:
space:
mode:
authordaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
committerdaoge_cmd <3523206925@qq.com>2026-03-01 12:16:08 +0800
commitb691c43c44ff180d10e7d4a9afc83b98551ff586 (patch)
tree3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.Client/NetherPortalParticle.h
parentdef8cb415354ac390b7e89052a50605285f1aca9 (diff)
Initial commit
Diffstat (limited to 'Minecraft.Client/NetherPortalParticle.h')
-rw-r--r--Minecraft.Client/NetherPortalParticle.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/Minecraft.Client/NetherPortalParticle.h b/Minecraft.Client/NetherPortalParticle.h
new file mode 100644
index 00000000..85aa8c66
--- /dev/null
+++ b/Minecraft.Client/NetherPortalParticle.h
@@ -0,0 +1,21 @@
+#pragma once
+#include "Particle.h"
+
+// 4J Stu - This class was originally "PortalParticle" but I have split the two uses of the particle
+// Only the nether portal uses this particle
+
+class NetherPortalParticle : public Particle
+{
+public:
+ virtual eINSTANCEOF GetType() { return eType_NETHERPORTALPARTICLE; }
+private:
+ float oSize;
+ double xStart, yStart, zStart;
+
+public:
+ NetherPortalParticle(Level *level, double x, double y, double z, double xd, double yd, double zd);
+ virtual void render(Tesselator *t, float a, float xa, float ya, float za, float xa2, float za2);
+ virtual int getLightColor(float a); // 4J - brought forward from 1.8.2
+ virtual float getBrightness(float a);
+ virtual void tick();
+}; \ No newline at end of file