mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 02:53:39 +00:00
16 lines
562 B
C++
16 lines
562 B
C++
|
|
#include "minecraft/world/effect/InstantaneousMobEffect.h"
|
|
|
|
#include "minecraft/GameEnums.h"
|
|
#include "minecraft/world/effect/MobEffect.h"
|
|
|
|
InstantenousMobEffect::InstantenousMobEffect(int id, bool isHarmful,
|
|
eMinecraftColour color)
|
|
: MobEffect(id, isHarmful, color) {}
|
|
|
|
bool InstantenousMobEffect::isInstantenous() { return true; }
|
|
|
|
bool InstantenousMobEffect::isDurationEffectTick(int remainingDuration,
|
|
int amplification) {
|
|
return remainingDuration >= 1;
|
|
} |