Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package net.minecraft.src;
- public class EntityMimic extends EntityAnimal
- {
- public EntityMimic(World world)
- {
- super(world);
- texture = "/mob/pig.png";
- setSize(0.9F, 0.9F);
- }
- protected void entityInit()
- {
- }
- public void writeEntityToNBT(NBTTagCompound nbttagcompound)
- {
- super.writeEntityToNBT(nbttagcompound);
- }
- public void readEntityFromNBT(NBTTagCompound nbttagcompound)
- {
- super.readEntityFromNBT(nbttagcompound);
- }
- protected String getLivingSound()
- {
- return "mob.pig";
- }
- protected String getHurtSound()
- {
- return "mob.pig";
- }
- protected String getDeathSound()
- {
- return "mob.pigdeath";
- }
- protected int getDropItemId()
- {
- if(fire > 0)
- {
- return Item.porkCooked.shiftedIndex;
- } else
- {
- return Item.porkRaw.shiftedIndex;
- }
- }
- protected void fall(float f)
- {
- super.fall(f);
- }
- }
Add Comment
Please, Sign In to add comment