public class EnchantWithLevels extends LootFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
EnchantWithLevels.Serializer |
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isTreasure |
private RandomValueRange |
randomLevel |
| 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) |
getConditionsprivate final RandomValueRange randomLevel
private final boolean isTreasure
public EnchantWithLevels(LootCondition[] conditionsIn, RandomValueRange randomRange, boolean isTreasureIn)
public ItemStack apply(ItemStack stack, java.util.Random rand, LootContext context)
apply in class LootFunction