forked from Kolyah35/minecraft-pe-0.6.1
50 lines
1.0 KiB
C++
Executable File
50 lines
1.0 KiB
C++
Executable File
#ifndef NET_MINECRAFT_WORLD_ENTITY_ANIMAL__Chicken_H__
|
|
#define NET_MINECRAFT_WORLD_ENTITY_ANIMAL__Chicken_H__
|
|
|
|
//package net.minecraft.world.entity.animal;
|
|
|
|
#include "Animal.h"
|
|
|
|
class CompoundTag;
|
|
class Level;
|
|
|
|
class Chicken: public Animal
|
|
{
|
|
typedef Animal super;
|
|
public:
|
|
Chicken(Level* level);
|
|
|
|
int getEntityTypeId() const;
|
|
|
|
/*@Override*/
|
|
int getMaxHealth();
|
|
|
|
void aiStep();
|
|
|
|
void addAdditonalSaveData(CompoundTag* tag);
|
|
void readAdditionalSaveData(CompoundTag* tag);
|
|
protected:
|
|
void causeFallDamage(float distance);
|
|
|
|
const char* getAmbientSound();
|
|
std::string getHurtSound();
|
|
std::string getDeathSound();
|
|
|
|
//int getDeathLoot();
|
|
|
|
//@Override
|
|
void dropDeathLoot(/*bool wasKilledByPlayer, int playerBonusLevel*/);
|
|
|
|
//@Override
|
|
Animal* getBreedOffspring(Animal* target);
|
|
public:
|
|
bool sheared;
|
|
float flap;
|
|
float flapSpeed;
|
|
float oFlapSpeed, oFlap;
|
|
float flapping;
|
|
int eggTime;
|
|
};
|
|
|
|
#endif /*NET_MINECRAFT_WORLD_ENTITY_ANIMAL__Chicken_H__*/
|