    001    package net.minecraft.entity.monster;
    002
    003    import net.minecraft.entity.EntityCreature;
    004    import net.minecraft.entity.passive.IAnimals;
    005    import net.minecraft.world.World;
    006
    007    public abstract class EntityGolem extends EntityCreature implements IAnimals
    008    {
    009        public EntityGolem(World par1World)
    010        {
    011            super(par1World);
    012        }
    013
    014        /**
    015         * Called when the mob is falling. Calculates and applies fall damage.
    016         */
    017        protected void fall(float par1) {}
    018
    019        /**
    020         * Returns the sound this mob makes while it's alive.
    021         */
    022        protected String getLivingSound()
    023        {
    024            return "none";
    025        }
    026
    027        /**
    028         * Returns the sound this mob makes when it is hurt.
    029         */
    030        protected String getHurtSound()
    031        {
    032            return "none";
    033        }
    034
    035        /**
    036         * Returns the sound this mob makes on death.
    037         */
    038        protected String getDeathSound()
    039        {
    040            return "none";
    041        }
    042
    043        /**
    044         * Get number of ticks, at least during which the living entity will be silent.
    045         */
    046        public int getTalkInterval()
    047        {
    048            return 120;
    049        }
    050
    051        /**
    052         * Determines if an entity can be despawned, used on idle far away entities
    053         */
    054        protected boolean canDespawn()
    055        {
    056            return false;
    057        }
    058    }