    001/*
    002 * Forge Mod Loader
    003 * Copyright (c) 2012-2013 cpw.
    004 * All rights reserved. This program and the accompanying materials
    005 * are made available under the terms of the GNU Lesser Public License v2.1
    006 * which accompanies this distribution, and is available at
    007 * http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
    008 *
    009 * Contributors:
    010 *     cpw - implementation
    011 */
    012
    013package cpw.mods.fml.common.modloader;
    014
    015import net.minecraft.entity.item.EntityItem;
    016import net.minecraft.entity.player.EntityPlayer;
    017import cpw.mods.fml.common.IPickupNotifier;
    018
    019public class ModLoaderPickupNotifier implements IPickupNotifier
    020{
    021
    022    private BaseModProxy mod;
    023
    024    public ModLoaderPickupNotifier(BaseModProxy mod)
    025    {
    026        this.mod = mod;
    027    }
    028
    029    @Override
    030    public void notifyPickup(EntityItem item, EntityPlayer player)
    031    {
    032        mod.onItemPickup(player, item.getEntityItem());
    033    }
    034
    035}