public class SetContentsLootFunction extends ConditionalLootFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
SetContentsLootFunction.Builer |
static class |
SetContentsLootFunction.Serializer |
ConditionalLootFunction.Builder<T extends ConditionalLootFunction.Builder<T>>, ConditionalLootFunction.Joiner| Modifier and Type | Field and Description |
|---|---|
private List<LootPoolEntry> |
entries |
conditions| Modifier | Constructor and Description |
|---|---|
private |
SetContentsLootFunction(LootCondition[] conditions,
List<LootPoolEntry> entries) |
| Modifier and Type | Method and Description |
|---|---|
static SetContentsLootFunction.Builer |
builder() |
LootFunctionType |
getType() |
ItemStack |
process(ItemStack stack,
LootContext context) |
void |
validate(LootTableReporter reporter) |
apply, builderclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplygetRequiredParametersandThenprivate final List<LootPoolEntry> entries
private SetContentsLootFunction(LootCondition[] conditions, List<LootPoolEntry> entries)
public LootFunctionType getType()
public ItemStack process(ItemStack stack, LootContext context)
process in class ConditionalLootFunctionpublic void validate(LootTableReporter reporter)
validate in interface LootContextAwarevalidate in class ConditionalLootFunctionpublic static SetContentsLootFunction.Builer builder()