forked from mirrors/kolyah35-minecraft-pe-0.6.1
the whole game
This commit is contained in:
parent
816e9060b4
commit
f0617a5d22
2069 changed files with 581500 additions and 0 deletions
46
src/world/entity/animal/WaterAnimal.h
Executable file
46
src/world/entity/animal/WaterAnimal.h
Executable file
|
|
@ -0,0 +1,46 @@
|
|||
#ifndef NET_MINECRAFT_WORLD_ENTITY_ANIMAL__WaterAnimal_H__
|
||||
#define NET_MINECRAFT_WORLD_ENTITY_ANIMAL__WaterAnimal_H__
|
||||
|
||||
//package net.minecraft.world.entity.animal;
|
||||
|
||||
#include "../PathfinderMob.h"
|
||||
#include "../Creature.h"
|
||||
|
||||
class Level;
|
||||
class Player;
|
||||
class CompoundTag;
|
||||
|
||||
/**
|
||||
* The purpose of this class is to offer a new base class for MobCategory.
|
||||
* {@link MobCategory}
|
||||
*
|
||||
* Note: Can't extend Animal because then water animals would prevent normal
|
||||
* animals to spawn, due to MobCategory.getMaxInstancesPerChunk(). This class is
|
||||
* otherwise similar to Animal
|
||||
*
|
||||
*/
|
||||
class WaterAnimal: public PathfinderMob, public Creature
|
||||
{
|
||||
typedef PathfinderMob super;
|
||||
public:
|
||||
WaterAnimal(Level* level);
|
||||
|
||||
/*@Override*/
|
||||
bool isWaterMob();
|
||||
|
||||
void addAdditonalSaveData(CompoundTag* entityTag);
|
||||
void readAdditionalSaveData(CompoundTag* tag);
|
||||
|
||||
bool canSpawn();
|
||||
|
||||
int getAmbientSoundInterval();
|
||||
int getCreatureBaseType() const;
|
||||
|
||||
protected:
|
||||
bool removeWhenFarAway();
|
||||
|
||||
/*@Override*/
|
||||
int getExperienceReward(Player* killedBy);
|
||||
};
|
||||
|
||||
#endif /*NET_MINECRAFT_WORLD_ENTITY_ANIMAL__WaterAnimal_H__*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue