mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-09-28 01:30:46 +00:00
chore: format Minecraft.World
This commit is contained in:
@@ -2,48 +2,48 @@
|
||||
|
||||
#include "../Monster.h"
|
||||
|
||||
class Silverfish : public Monster
|
||||
{
|
||||
class Silverfish : public Monster {
|
||||
public:
|
||||
eINSTANCEOF GetType() { return eTYPE_SILVERFISH; }
|
||||
static Entity *create(Level *level) { return new Silverfish(level); }
|
||||
eINSTANCEOF GetType() { return eTYPE_SILVERFISH; }
|
||||
static Entity* create(Level* level) { return new Silverfish(level); }
|
||||
|
||||
private:
|
||||
int lookForFriends;
|
||||
int lookForFriends;
|
||||
|
||||
public:
|
||||
Silverfish(Level *level);
|
||||
Silverfish(Level* level);
|
||||
|
||||
virtual int getMaxHealth();
|
||||
virtual int getMaxHealth();
|
||||
|
||||
protected:
|
||||
virtual bool makeStepSound();
|
||||
virtual std::shared_ptr<Entity> findAttackTarget();
|
||||
virtual bool makeStepSound();
|
||||
virtual std::shared_ptr<Entity> findAttackTarget();
|
||||
|
||||
virtual int getAmbientSound();
|
||||
virtual int getHurtSound();
|
||||
virtual int getDeathSound();
|
||||
virtual int getAmbientSound();
|
||||
virtual int getHurtSound();
|
||||
virtual int getDeathSound();
|
||||
|
||||
public:
|
||||
virtual bool hurt(DamageSource *source, int dmg);
|
||||
virtual bool hurt(DamageSource* source, int dmg);
|
||||
|
||||
protected:
|
||||
virtual void checkHurtTarget(std::shared_ptr<Entity> target, float d);
|
||||
virtual void playStepSound(int xt, int yt, int zt, int t);
|
||||
virtual int getDeathLoot();
|
||||
virtual void checkHurtTarget(std::shared_ptr<Entity> target, float d);
|
||||
virtual void playStepSound(int xt, int yt, int zt, int t);
|
||||
virtual int getDeathLoot();
|
||||
|
||||
public:
|
||||
virtual void tick();
|
||||
virtual void tick();
|
||||
|
||||
protected:
|
||||
virtual void serverAiStep();
|
||||
virtual void serverAiStep();
|
||||
|
||||
public:
|
||||
virtual float getWalkTargetValue(int x, int y, int z);
|
||||
virtual float getWalkTargetValue(int x, int y, int z);
|
||||
|
||||
protected:
|
||||
virtual bool isDarkEnoughToSpawn();
|
||||
virtual bool isDarkEnoughToSpawn();
|
||||
|
||||
public:
|
||||
virtual bool canSpawn();
|
||||
virtual MobType getMobType();
|
||||
virtual bool canSpawn();
|
||||
virtual MobType getMobType();
|
||||
};
|
||||
Reference in New Issue
Block a user