public class LootingEnchantBonus extends LootFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
LootingEnchantBonus.Serializer |
| Modifier and Type | Field and Description |
|---|---|
private RandomValueRange |
count |
private int |
limit |
| Constructor and Description |
|---|
LootingEnchantBonus(LootCondition[] conditions,
RandomValueRange countIn,
int limitIn) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
getConditionsprivate final RandomValueRange count
private final int limit
public LootingEnchantBonus(LootCondition[] conditions, RandomValueRange countIn, int limitIn)
public ItemStack apply(ItemStack stack, java.util.Random rand, LootContext context)
apply in class LootFunction