public class EnchantWithLevels extends LootFunction
Modifier and Type | Class and Description |
---|---|
static class |
EnchantWithLevels.Serializer |
Constructor and Description |
---|
EnchantWithLevels(LootCondition[] conditionsIn,
RandomValueRange randomRange,
boolean isTreasureIn) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
getConditions
public EnchantWithLevels(LootCondition[] conditionsIn, RandomValueRange randomRange, boolean isTreasureIn)
public ItemStack apply(ItemStack stack, java.util.Random rand, LootContext context)
apply
in class LootFunction