public class LimitCountLootFunction extends ConditionalLootFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
LimitCountLootFunction.Factory |
ConditionalLootFunction.Builder<T extends ConditionalLootFunction.Builder<T>>, ConditionalLootFunction.Joiner| Modifier and Type | Field and Description |
|---|---|
private BoundedIntUnaryOperator |
limit |
conditions| Modifier | Constructor and Description |
|---|---|
private |
LimitCountLootFunction(LootCondition[] conditions,
BoundedIntUnaryOperator limit) |
| Modifier and Type | Method and Description |
|---|---|
static ConditionalLootFunction.Builder<?> |
builder(BoundedIntUnaryOperator limit) |
ItemStack |
process(ItemStack stack,
LootContext context) |
apply, builder, checkclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplygetRequiredParametersandThenprivate final BoundedIntUnaryOperator limit
private LimitCountLootFunction(LootCondition[] conditions, BoundedIntUnaryOperator limit)
public ItemStack process(ItemStack stack, LootContext context)
process in class ConditionalLootFunctionpublic static ConditionalLootFunction.Builder<?> builder(BoundedIntUnaryOperator limit)