Initial commit
This commit is contained in:
16
Minecraft.World/InstantenousMobEffect.cpp
Normal file
16
Minecraft.World/InstantenousMobEffect.cpp
Normal file
@@ -0,0 +1,16 @@
|
||||
#include "stdafx.h"
|
||||
#include "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;
|
||||
}
|
||||
Reference in New Issue
Block a user