the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
at master 43 lines 989 B view raw
1#pragma once 2 3#include "Fireball.h" 4 5class WitherSkull : public Fireball 6{ 7public: 8 eINSTANCEOF GetType() { return eTYPE_WITHER_SKULL; } 9 static Entity *create(Level *level) { return new WitherSkull(level); } 10 11private: 12 static const int DATA_DANGEROUS = 10; 13 14public: 15 WitherSkull(Level *level); 16 WitherSkull(Level *level, shared_ptr<LivingEntity> mob, double xa, double ya, double za); 17 18protected: 19 virtual float getInertia(); 20 21public: 22 WitherSkull(Level *level, double x, double y, double z, double xa, double ya, double za); 23 24 virtual bool isOnFire(); 25 virtual float getTileExplosionResistance(Explosion *explosion, Level *level, int x, int y, int z, Tile *tile); 26 27protected: 28 virtual void onHit(HitResult *res); 29 30public: 31 virtual bool isPickable(); 32 virtual bool hurt(DamageSource *source, float damage); 33 34protected: 35 virtual void defineSynchedData(); 36 37public: 38 virtual bool isDangerous(); 39 virtual void setDangerous(bool value); 40 41protected: 42 virtual bool shouldBurn(); // 4J Added. 43};