'How to set bounding or collision box in NMS

I am trying to set the bounding box (collision box) of an entity. I am using Mojang mapped NMS to make my custom entity and I noticed there was a setBoundingBox method and it uses AABB (whatever that is). I tried making an AABB object or whatever by putting in block positions and it doesn't work. Is this what I need to change the bounding or collision box? If so, how would I go about doing that?

.setBoundingBox

Also posted here: 1.18 - How to set bounding or collision box in NMS



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source