the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1#pragma once
2
3class Mob;
4
5class MobEffectInstance
6{
7private:
8 // sent as byte
9 int id;
10 // sent as short
11 int duration;
12 // sent as byte
13 int amplifier;
14 bool splash;
15 bool ambient;
16 bool noCounter;
17
18 void _init(int id, int duration, int amplifier);
19
20public:
21 MobEffectInstance(int id);
22 MobEffectInstance(int id, int duration);
23 MobEffectInstance(int id, int duration, int amplifier);
24 MobEffectInstance(int id, int duration, int amplifier, bool ambient);
25 MobEffectInstance(MobEffectInstance *copy);
26
27 void update(MobEffectInstance *takeOver);
28 int getId();
29 int getDuration();
30 int getAmplifier();
31
32 bool isSplash();
33 void setSplash(bool splash);
34 bool isAmbient();
35
36 bool tick(shared_ptr<LivingEntity> target);
37
38private:
39 int tickDownDuration();
40
41public:
42 void applyEffect(shared_ptr<LivingEntity> mob);
43 int getDescriptionId();
44 int getPostfixDescriptionId(); // 4J Added
45 int hashCode();
46
47 wstring toString();
48
49 // Was bool equals(Object obj)
50 bool equals(MobEffectInstance *obj);
51
52 CompoundTag *save(CompoundTag *tag);
53 static MobEffectInstance *load(CompoundTag *tag);
54 void setNoCounter(bool noCounter);
55 bool isNoCounter();
56};