Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
1.1 kB · 56 lines
C
at master
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556#pragma once
class Mob;
class MobEffectInstance{private: // sent as byte int id; // sent as short int duration; // sent as byte int amplifier; bool splash; bool ambient; bool noCounter;
void _init(int id, int duration, int amplifier);
public: MobEffectInstance(int id); MobEffectInstance(int id, int duration); MobEffectInstance(int id, int duration, int amplifier); MobEffectInstance(int id, int duration, int amplifier, bool ambient); MobEffectInstance(MobEffectInstance *copy);
void update(MobEffectInstance *takeOver); int getId(); int getDuration(); int getAmplifier();
bool isSplash(); void setSplash(bool splash); bool isAmbient();
bool tick(shared_ptr<LivingEntity> target);
private: int tickDownDuration();
public: void applyEffect(shared_ptr<LivingEntity> mob); int getDescriptionId(); int getPostfixDescriptionId(); // 4J Added int hashCode();
wstring toString();
// Was bool equals(Object obj) bool equals(MobEffectInstance *obj);
CompoundTag *save(CompoundTag *tag); static MobEffectInstance *load(CompoundTag *tag); void setNoCounter(bool noCounter); bool isNoCounter();};