Files
Botania/src/main/java/vazkii/botania/api/mana/ManaItemsEvent.java
T
2016-09-23 19:18:05 -05:00

41 lines
977 B
Java

/**
* This class was created by <Flaxbeard>. It's distributed as
* part of the Botania Mod. Get the Source Code in github:
* https://github.com/Vazkii/Botania
*
* Botania is Open Source and distributed under the
* Botania License: http://botaniamod.net/license.php
*
* File Created @ [Sep 23, 2016, 11:59:12 PM (GMT)]
*/
package vazkii.botania.api.mana;
import java.util.List;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.eventhandler.Event;
public class ManaItemsEvent extends Event {
private final EntityPlayer entityPlayer;
private List<ItemStack> items;
public ManaItemsEvent(EntityPlayer entityPlayer, List<ItemStack> items) {
this.entityPlayer = entityPlayer;
this.items = items;
}
public EntityPlayer getEntityPlayer() {
return entityPlayer;
}
public List<ItemStack> getItems() {
return items;
}
public void add(ItemStack item) {
items.add(item);
}
}