Ported WrenchHelper, DyeHelper and InventoryUtils.