public class SetLootTableLootFunction extends ConditionalLootFunction
| Modifier and Type | Class and Description |
|---|---|
static class |
SetLootTableLootFunction.Serializer |
ConditionalLootFunction.Builder<T extends ConditionalLootFunction.Builder<T>>, ConditionalLootFunction.Joiner| Modifier and Type | Field and Description |
|---|---|
private Identifier |
id |
private long |
seed |
conditions| Modifier | Constructor and Description |
|---|---|
private |
SetLootTableLootFunction(LootCondition[] conditions,
Identifier id,
long seed) |
| Modifier and Type | Method and Description |
|---|---|
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 Identifier id
private final long seed
private SetLootTableLootFunction(LootCondition[] conditions, Identifier id, long seed)
public LootFunctionType getType()
public ItemStack process(ItemStack stack, LootContext context)
process in class ConditionalLootFunctionpublic void validate(LootTableReporter reporter)
validate in interface LootContextAwarevalidate in class ConditionalLootFunction