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