RemoveAll function for loot tiers

This commit is contained in:
Yulife 2015-05-03 14:07:46 +02:00
parent 69a449a6bc
commit b699a3a176

View file

@ -51,6 +51,21 @@ public class Loot {
public static void removeRareLoot(IItemStack stack) {
MineTweakerAPI.apply(new Remove(WeightedRandomLoot.lootBagRare, InputHelper.toStack(stack)));
}
@ZenMethod
public static void removeAllCommonLoot(IItemStack stack) {
MineTweakerAPI.apply(new RemoveAll(WeightedRandomLoot.lootBagCommon));
}
@ZenMethod
public static void removeAllUncommonLoot(IItemStack stack) {
MineTweakerAPI.apply(new RemoveAll(WeightedRandomLoot.lootBagUncommon));
}
@ZenMethod
public static void removeAllRareLoot(IItemStack stack) {
MineTweakerAPI.apply(new RemoveAll(WeightedRandomLoot.lootBagRare));
}
public static class Remove extends BaseListRemoval {