mDiyo

EntityMimic.java

May 27th, 2011
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.05 KB | None | 0 0
  1. package net.minecraft.src;
  2.  
  3. public class EntityMimic extends EntityAnimal
  4. {
  5.  
  6.     public EntityMimic(World world)
  7.     {
  8.         super(world);
  9.         texture = "/mob/pig.png";
  10.         setSize(0.9F, 0.9F);
  11.     }
  12.  
  13.     protected void entityInit()
  14.     {
  15.  
  16.     }
  17.  
  18.     public void writeEntityToNBT(NBTTagCompound nbttagcompound)
  19.     {
  20.         super.writeEntityToNBT(nbttagcompound);
  21.     }
  22.  
  23.     public void readEntityFromNBT(NBTTagCompound nbttagcompound)
  24.     {
  25.         super.readEntityFromNBT(nbttagcompound);
  26.     }
  27.  
  28.     protected String getLivingSound()
  29.     {
  30.         return "mob.pig";
  31.     }
  32.  
  33.     protected String getHurtSound()
  34.     {
  35.         return "mob.pig";
  36.     }
  37.  
  38.     protected String getDeathSound()
  39.     {
  40.         return "mob.pigdeath";
  41.     }
  42.  
  43.     protected int getDropItemId()
  44.     {
  45.         if(fire > 0)
  46.         {
  47.             return Item.porkCooked.shiftedIndex;
  48.         } else
  49.         {
  50.             return Item.porkRaw.shiftedIndex;
  51.         }
  52.     }
  53.  
  54.     protected void fall(float f)
  55.     {
  56.         super.fall(f);
  57.     }
  58. }
Add Comment
Please, Sign In to add comment