public class SetAttributes extends LootFunction
Modifier and Type | Class and Description |
---|---|
static class |
SetAttributes.Serializer |
Constructor and Description |
---|
SetAttributes(LootCondition[] conditionsIn,
net.minecraft.world.storage.loot.functions.SetAttributes.Modifier[] modifiersIn) |
Modifier and Type | Method and Description |
---|---|
ItemStack |
apply(ItemStack stack,
java.util.Random rand,
LootContext context) |
getConditions
public SetAttributes(LootCondition[] conditionsIn, net.minecraft.world.storage.loot.functions.SetAttributes.Modifier[] modifiersIn)
public ItemStack apply(ItemStack stack, java.util.Random rand, LootContext context)
apply
in class LootFunction