public interface IGlobalLootModifier
LootModifier
Supplies base functionality; most modders should only need to extend that.GlobalLootModifierSerializer
to be registered via json (see forge:loot_modifiers/global_loot_modifiers).Modifier and Type | Method and Description |
---|---|
java.util.List<ItemStack> |
apply(java.util.List<ItemStack> generatedLoot,
LootContext context)
Applies the modifier to the list of generated loot.
|
@Nonnull java.util.List<ItemStack> apply(java.util.List<ItemStack> generatedLoot, LootContext context)
generatedLoot
- the list of ItemStacks that will be dropped, generated by loot tablescontext
- the LootContext, identical to what is passed to loot tables