public class FillPlayerHeadLootFunction extends ConditionalLootFunction
Modifier and Type | Class and Description |
---|---|
static class |
FillPlayerHeadLootFunction.Serializer |
ConditionalLootFunction.Builder<T extends ConditionalLootFunction.Builder<T>>, ConditionalLootFunction.Joiner
Modifier and Type | Field and Description |
---|---|
private LootContext.EntityTarget |
entity |
conditions
Constructor and Description |
---|
FillPlayerHeadLootFunction(LootCondition[] conditions,
LootContext.EntityTarget entity) |
Modifier and Type | Method and Description |
---|---|
Set<LootContextParameter<?>> |
getRequiredParameters() |
LootFunctionType |
getType() |
ItemStack |
process(ItemStack stack,
LootContext context) |
apply, builder, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
apply
andThen
private final LootContext.EntityTarget entity
public FillPlayerHeadLootFunction(LootCondition[] conditions, LootContext.EntityTarget entity)
public LootFunctionType getType()
public Set<LootContextParameter<?>> getRequiredParameters()
public ItemStack process(ItemStack stack, LootContext context)
process
in class ConditionalLootFunction