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, builder
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
getRequiredParameters
andThen
private 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 ConditionalLootFunction
public void validate(LootTableReporter reporter)
validate
in interface LootContextAware
validate
in class ConditionalLootFunction