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