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