    001    package net.minecraft.src;
    002
    003    import net.minecraft.server.MinecraftServer;
    004
    005    public class BehaviorMobEggDispense extends BehaviorDefaultDispenseItem
    006    {
    007        /** Gets Minecraft Server players. */
    008        final MinecraftServer minecraftServerPlayers;
    009
    010        public BehaviorMobEggDispense(MinecraftServer par1)
    011        {
    012            this.minecraftServerPlayers = par1;
    013        }
    014
    015        public ItemStack func_82487_b(IBlockSource par1IBlockSource, ItemStack par2ItemStack)
    016        {
    017            EnumFacing var3 = EnumFacing.func_82600_a(par1IBlockSource.func_82620_h());
    018            double var4 = par1IBlockSource.func_82615_a() + (double)var3.func_82601_c();
    019            double var6 = (double)((float)par1IBlockSource.func_82622_e() + 0.2F);
    020            double var8 = par1IBlockSource.func_82616_c() + (double)var3.func_82599_e();
    021            ItemMonsterPlacer.spawnCreature(par1IBlockSource.func_82618_k(), par2ItemStack.getItemDamage(), var4, var6, var8);
    022            par2ItemStack.splitStack(1);
    023            return par2ItemStack;
    024        }
    025
    026        protected void func_82485_a(IBlockSource par1IBlockSource)
    027        {
    028            par1IBlockSource.func_82618_k().playAuxSFX(1002, par1IBlockSource.func_82623_d(), par1IBlockSource.func_82622_e(), par1IBlockSource.func_82621_f(), 0);
    029        }
    030    }