diff options
| author | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
|---|---|---|
| committer | daoge_cmd <3523206925@qq.com> | 2026-03-01 12:16:08 +0800 |
| commit | b691c43c44ff180d10e7d4a9afc83b98551ff586 (patch) | |
| tree | 3e9849222cbc6ba49f2f1fc6e5fe7179632c7390 /Minecraft.World/LavaSlime.h | |
| parent | def8cb415354ac390b7e89052a50605285f1aca9 (diff) | |
Initial commit
Diffstat (limited to 'Minecraft.World/LavaSlime.h')
| -rw-r--r-- | Minecraft.World/LavaSlime.h | 46 |
1 files changed, 46 insertions, 0 deletions
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<Slime> 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 |
