diff options
author | Debucquoy Anthony tonitch <debucquoy.anthony@gmail.com> | 2023-09-26 23:54:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-26 23:54:37 +0200 |
commit | 7db4e20fd7ee7cf1c25d5c2c5e9e1b1cf97d4c97 (patch) | |
tree | 62ce535a26ad0637564de14ad7b75429537162a7 /src/Mobs/Endermite.h | |
parent | Update Core (diff) | |
download | cuberite-7db4e20fd7ee7cf1c25d5c2c5e9e1b1cf97d4c97.tar cuberite-7db4e20fd7ee7cf1c25d5c2c5e9e1b1cf97d4c97.tar.gz cuberite-7db4e20fd7ee7cf1c25d5c2c5e9e1b1cf97d4c97.tar.bz2 cuberite-7db4e20fd7ee7cf1c25d5c2c5e9e1b1cf97d4c97.tar.lz cuberite-7db4e20fd7ee7cf1c25d5c2c5e9e1b1cf97d4c97.tar.xz cuberite-7db4e20fd7ee7cf1c25d5c2c5e9e1b1cf97d4c97.tar.zst cuberite-7db4e20fd7ee7cf1c25d5c2c5e9e1b1cf97d4c97.zip |
Diffstat (limited to 'src/Mobs/Endermite.h')
-rw-r--r-- | src/Mobs/Endermite.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/Mobs/Endermite.h b/src/Mobs/Endermite.h new file mode 100644 index 000000000..9e0102a07 --- /dev/null +++ b/src/Mobs/Endermite.h @@ -0,0 +1,24 @@ + +#pragma once + +#include "AggressiveMonster.h" + + + +class cEndermite: + public cAggressiveMonster +{ + using Super = cAggressiveMonster; + + // Endermite should despawn in two minutes + std::chrono::milliseconds m_Timer; + std::chrono::milliseconds m_Lifetime; + +public: + + cEndermite(); + + CLASS_PROTODEF(cEndermite) + + void Tick(std::chrono::milliseconds a_Dt, cChunk & a_Chunk) override; +} ; |