    001package cpw.mods.fml.common.modloader;
    002
    003import net.minecraft.entity.item.EntityItem;
    004import net.minecraft.entity.player.EntityPlayer;
    005import cpw.mods.fml.common.IPickupNotifier;
    006
    007public class ModLoaderPickupNotifier implements IPickupNotifier
    008{
    009
    010    private BaseModProxy mod;
    011
    012    public ModLoaderPickupNotifier(BaseModProxy mod)
    013    {
    014        this.mod = mod;
    015    }
    016
    017    @Override
    018    public void notifyPickup(EntityItem item, EntityPlayer player)
    019    {
    020        mod.onItemPickup(player, item.getEntityItem());
    021    }
    022
    023}