From b691c43c44ff180d10e7d4a9afc83b98551ff586 Mon Sep 17 00:00:00 2001 From: daoge_cmd <3523206925@qq.com> Date: Sun, 1 Mar 2026 12:16:08 +0800 Subject: Initial commit --- Minecraft.World/LavaSlime.h | 46 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 Minecraft.World/LavaSlime.h (limited to 'Minecraft.World/LavaSlime.h') diff --git a/Minecraft.World/LavaSlime.h b/Minecraft.World/LavaSlime.h new file mode 100644 index 00000000..08857ca9 --- /dev/null +++ b/Minecraft.World/LavaSlime.h @@ -0,0 +1,46 @@ +#pragma once + +#include "Slime.h" + +class LavaSlime : public Slime +{ +public: + eINSTANCEOF GetType() { return eTYPE_LAVASLIME; } + static Entity *create(Level *level) { return new LavaSlime(level); } + +public: + LavaSlime(Level *level); + + virtual bool canSpawn(); + virtual int getArmorValue(); + +public: + virtual int getLightColor(float a); + virtual float getBrightness(float a); + +protected: + virtual ePARTICLE_TYPE getParticleName(); + virtual shared_ptr createChild(); + virtual int getDeathLoot(); + virtual void dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel); + +public: + bool isOnFire(); + +protected: + int getJumpDelay(); + virtual void decreaseSquish(); + virtual void jumpFromGround(); + virtual void causeFallDamage(float distance); + virtual bool isDealsDamage(); + virtual int getAttackDamage(); + virtual int getHurtSound(); + virtual int getDeathSound(); + virtual int getSquishSound(); + +public: + virtual bool isInLava(); + +protected: + virtual bool doPlayLandSound(); +}; \ No newline at end of file -- cgit v1.2.3