public abstract class LootFunction
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LootFunction.Serializer<T extends LootFunction> |
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() |
protected LootFunction(LootCondition[] conditionsIn)
public abstract ItemStack apply(ItemStack stack, java.util.Random rand, LootContext context)
public LootCondition[] getConditions()