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

19 lines
430 B
Java
Raw Normal View History

2013-06-14 06:44:53 +00:00
package powercrystals.minefactoryreloaded.api;
import net.minecraft.item.ItemStack;
import net.minecraft.util.WeightedRandomItem;
2013-09-21 10:30:47 +00:00
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();
}
2013-06-14 06:44:53 +00:00
}