Modding:Giving Creatures Inventory Items

Preset Inventory
Add an inventoryobject to the object

Random Inventory
The best modern way is to add a tag:

...and add the matching population table via a populationtables.xml file in your mod.

Legacy Methods
Legacy methods that we've most deprecated in favor of population tables:

Builder classes directly on the inventory part: