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, builder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
getRequiredParameters
andThen
private final List<LootPoolEntry> entries
private SetContentsLootFunction(LootCondition[] conditions, List<LootPoolEntry> entries)
public LootFunctionType getType()
public ItemStack process(ItemStack stack, LootContext context)
process
in class ConditionalLootFunction
public void validate(LootTableReporter reporter)
validate
in interface LootContextAware
validate
in class ConditionalLootFunction
public static SetContentsLootFunction.Builer builder()