mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-26 06:53:20 +00:00
24 lines
499 B
Java
24 lines
499 B
Java
package cpw.mods.fml.common.modloader;
|
|
|
|
import net.minecraft.src.EntityItem;
|
|
import net.minecraft.src.EntityPlayer;
|
|
import cpw.mods.fml.common.IPickupNotifier;
|
|
|
|
public class ModLoaderPickupNotifier implements IPickupNotifier
|
|
{
|
|
|
|
private BaseModProxy mod;
|
|
|
|
public ModLoaderPickupNotifier(BaseModProxy mod)
|
|
{
|
|
this.mod = mod;
|
|
}
|
|
|
|
@Override
|
|
public void notifyPickup(EntityItem item, EntityPlayer player)
|
|
{
|
|
mod.onItemPickup(player, item.field_70294_a);
|
|
}
|
|
|
|
}
|