Transformation of entire loot list for `modifyLoot`
Prunoideae opened this issue ยท 1 comments
Describe the feature/addition!
Instead of transforming each item in list, transform the entire list at one time:
For following lines of code:
Instead of using set
, modifies the entire list returned by a callback:
loot.clear()
loot.addAll(callback.whatsoever())
Also, is it possible to expose LootContext
here? It would be good for doing context-specific drops, like dropping head of player or souls of killed entities, etc.
Why would like to see this feature/addition?
The only way to change drops with a predicate is to use modifyLoot
, however, this one-to-one mapping of loot is pretty rigid.