public class SetCount extends LootFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
SetCount.Serializer |
| Modifier and Type | Field and Description |
|---|---|
private RandomValueRange |
countRange |
| Constructor and Description |
|---|
SetCount(LootCondition[] conditionsIn,
RandomValueRange countRangeIn) |
| Modifier and Type | Method and Description |
|---|---|
ItemStack |
apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
getConditionsprivate final RandomValueRange countRange
public SetCount(LootCondition[] conditionsIn, RandomValueRange countRangeIn)
public ItemStack apply(ItemStack stack, java.util.Random rand, LootContext context)
apply in class LootFunction