mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-25 11:23:43 +00:00
16 lines
406 B
C++
16 lines
406 B
C++
#include "../Platform/stdafx.h"
|
|
#include "../Headers/net.minecraft.world.effect.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;
|
|
} |