Files
neoLegacy/Minecraft.World/SnowMan.h
T
Tranqlmao ff562d1644 TU46 Test content and patches
TU46 Test content, added missing commits by amending commit and cherry-picking to new branch, ready for iggy guis and tu46 bug fixes
2026-10-22 13:55:39 -04:00

42 lines
966 B
C++

#pragma once
#include "Golem.h"
#include "RangedAttackMob.h"
class SnowMan : public Golem, public RangedAttackMob
{
public:
eINSTANCEOF GetType() { return eTYPE_SNOWMAN; }
static Entity *create(Level *level) { return new SnowMan(level); }
static const int DATA_PUMPKIN_ID = 16;
public:
SnowMan(Level *level);
virtual bool useNewAi();
bool hasPumpkin();
void setPumpkin(bool pumpkin);
virtual bool mobInteract(shared_ptr<Player> player);
virtual void addAdditonalSaveData(CompoundTag *tag);
virtual void readAdditionalSaveData(CompoundTag *tag);
protected:
virtual void defineSynchedData();
public:
protected:
virtual void registerAttributes();
public:
virtual void aiStep();
protected:
virtual int getHurtSound();
virtual int getDeathSound();
virtual int getDeathLoot();
// virtual void dropDeathLoot(bool wasKilledByPlayer, int playerBonusLevel);
public:
virtual void performRangedAttack(shared_ptr<LivingEntity> target, float power);
};