BiomesOPlenty/apis/powercrystals/minefactoryreloaded/api/MobDrop.java

22 lines
415 B
Java
Raw Normal View History

2013-10-22 06:05:01 +00:00
package powercrystals.minefactoryreloaded.api;
import net.minecraft.item.ItemStack;
import net.minecraft.util.WeightedRandomItem;
public class MobDrop extends WeightedRandomItem
{
private ItemStack _stack;
public MobDrop(int weight, ItemStack stack)
{
super(weight);
_stack = stack;
}
public ItemStack getStack()
{
if(_stack == null) return null;
return _stack.copy();
}
}