public class EnchantRandomly extends LootFunction
Modifier and Type | Class and Description |
---|---|
static class |
EnchantRandomly.Serializer |
Constructor and Description |
---|
EnchantRandomly(LootCondition[] conditionsIn,
java.util.List<Enchantment> enchantmentsIn) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
getConditions
public EnchantRandomly(LootCondition[] conditionsIn, @Nullable java.util.List<Enchantment> enchantmentsIn)
public ItemStack apply(ItemStack stack, java.util.Random rand, LootContext context)
apply
in class LootFunction