public abstract class LootFunction
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LootFunction.Serializer<T extends LootFunction> |
Modifier and Type | Field and Description |
---|---|
private LootCondition[] |
conditions |
Modifier | Constructor and Description |
---|---|
protected |
LootFunction(LootCondition[] conditionsIn) |
Modifier and Type | Method and Description |
---|---|
abstract ItemStack |
apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
LootCondition[] |
getConditions() |
private final LootCondition[] conditions
protected LootFunction(LootCondition[] conditionsIn)
public abstract ItemStack apply(ItemStack stack, java.util.Random rand, LootContext context)
public LootCondition[] getConditions()