package cpw.mods.fml.common.gameevent;
import net.minecraft.entity.item.EntityItem;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.inventory.IInventory;
import net.minecraft.item.ItemStack;
import cpw.mods.fml.common.eventhandler.Event;
public class PlayerEvent extends Event {
public final EntityPlayer player;
private PlayerEvent(EntityPlayer player)
{
this.player = player;
}
public static class ItemPickupEvent extends PlayerEvent {
public final EntityItem pickedUp;
public ItemPickupEvent(EntityPlayer player, EntityItem pickedUp)
{
super(player);
this.pickedUp = pickedUp;
}
}
public static class ItemCraftedEvent extends PlayerEvent {
public final ItemStack crafting;
public final IInventory craftMatrix;
public ItemCraftedEvent(EntityPlayer player, ItemStack crafting, IInventory craftMatrix)
{
super(player);
this.crafting = crafting;
this.craftMatrix = craftMatrix;
}
}
public static class ItemSmeltedEvent extends PlayerEvent {
public final ItemStack smelting;
public ItemSmeltedEvent(EntityPlayer player, ItemStack crafting)
{
super(player);
this.smelting = crafting;
}
}
public static class PlayerLoggedInEvent extends PlayerEvent {
public PlayerLoggedInEvent(EntityPlayer player)
{
super(player);
}
}
public static class PlayerLoggedOutEvent extends PlayerEvent {
public PlayerLoggedOutEvent(EntityPlayer player)
{
super(player);
}
}
public static class PlayerRespawnEvent extends PlayerEvent {
public PlayerRespawnEvent(EntityPlayer player)
{
super(player);
}
}
public static class PlayerChangedDimensionEvent extends PlayerEvent {
public final int fromDim;
public final int toDim;
public PlayerChangedDimensionEvent(EntityPlayer player, int fromDim, int toDim)
{
super(player);
this.fromDim = fromDim;
this.toDim = toDim;
}
}
}