2013-06-14 06:44:53 +00:00
|
|
|
package powercrystals.minefactoryreloaded.api;
|
|
|
|
|
|
|
|
import net.minecraft.entity.Entity;
|
|
|
|
import net.minecraft.util.WeightedRandomItem;
|
|
|
|
|
2013-09-21 10:30:47 +00:00
|
|
|
public class RandomMob extends WeightedRandomItem {
|
|
|
|
private Entity _mob;
|
|
|
|
|
|
|
|
public RandomMob(Entity savedMob, int weight) {
|
|
|
|
super(weight);
|
|
|
|
_mob = savedMob;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Entity getMob() {
|
|
|
|
if (_mob == null) return null;
|
|
|
|
return _mob;
|
|
|
|
}
|
2013-06-14 06:44:53 +00:00
|
|
|
}
|