Editing/Removing Loot Table

I need to prevent mobs from dropping stuff in a plugin i am making, but i cant seem to find how to do that, anyone know?

listen for EntityDeathEvent, cache the UUID, listen for DropItemEvent.Destruct, get an EntitySpawnCause, check if the EntitySpawnCause’s entity has the same UUID, clear the List of drops in the DropItemEvent.Destruct

wow… that should probably be made a little better in the future.

Maybe setting the LootTable of an Entity to ‘zero’ before the drop event. That isn’t implemented yet I think.