001 package net.minecraftforge.event.entity.item; 002 003 import net.minecraft.entity.item.EntityItem; 004 import net.minecraftforge.event.entity.EntityEvent; 005 006 /** 007 * Base class for all EntityItem events. Contains a reference to the 008 * EntityItem of interest. For most EntityItem events, there's little to no 009 * additional useful data from the firing method that isn't already contained 010 * within the EntityItem instance. 011 */ 012 public class ItemEvent extends EntityEvent 013 { 014 /** 015 * The relevant EntityItem for this event, already cast for you. 016 */ 017 public final EntityItem entityItem; 018 019 /** 020 * Creates a new event for an EntityItem. 021 * 022 * @param itemEntity The EntityItem for this event 023 */ 024 public ItemEvent(EntityItem itemEntity) 025 { 026 super(itemEntity); 027 this.entityItem = itemEntity; 028 } 029 }