Onomatopoeia
An onomatopoeia is a word that sounds the same as it’s meaning. The specific examples from this passage are rattling, clatter, hammer, muffled drumming.
Onomatopoeia can be used to create sensory details and allow the reader to better visualize (or in this case hear) the setting.