Files
minecraft-pe-0.6.1/src/world/entity/animal/Animal.h
2026-03-02 22:04:18 +03:00

40 lines
766 B
C++
Executable File

#ifndef NET_MINECRAFT_WORLD_ENTITY_ANIMAL__Animal_H__
#define NET_MINECRAFT_WORLD_ENTITY_ANIMAL__Animal_H__
//package net.minecraft.world.entity.animal;
#include "../AgableMob.h"
#include "../Creature.h"
class Level;
class Entity;
class CompoundTag;
class Animal: public AgableMob,
public Creature
{
typedef AgableMob super;
public:
Animal(Level* level);
//@Override
bool hurt(Entity* source, int dmg);
bool canSpawn();
int getAmbientSoundInterval();
int getCreatureBaseType() const;
bool removeWhenFarAway();
protected:
float getWalkTargetValue(int x, int y, int z);
Entity* findAttackTarget();
private:
int inLove;
};
#endif /*NET_MINECRAFT_WORLD_ENTITY_ANIMAL__Animal_H__*/