Hitbox Expansion via setBoundingBox

Hitbox_SetBoundingBox Hitbox HIGH +9 score

🎮 Minecraft Gameplay Impact

Directly mutates enemy entities' axis-aligned bounding boxes using setBoundingBox() combined with Box.expand() or Box.stretch(), artificially enlarging the physical volume where attacks and projectile hits register.

🔍 Functions & APIs Analyzed

Entity.setBoundingBox

Overwrites entity bounding box field (method_5857 / func_174826_a).

Box.expand / Box.stretch

Creates inflated Box geometries (method_1009).

💻 Mod Implementation (Dev Source / Mapped)

// Developer Source (Fabric / Yarn mappings)
public class HitboxExpander {
    public static void expand(Entity entity, double size) {
        Box current = entity.getBoundingBox();
        entity.setBoundingBox(current.expand(size, 0.0, size));
    }
}

⚙️ Decompiled Representation (Vineflower View)

// Decompiled with Vineflower 1.12 (Intermediary mappings)
public class HitboxExpander {
    public static void expand(class_1297 entity, double size) {
        class_238 current = entity.method_5829();
        entity.method_5857(current.method_1009(size, 0.0, size));
    }
}

🛡️ Bytecode Signature & Static Detection

Matches method references to Entity.setBoundingBox (method_5857 / func_174826_a) combined with Box expansion methods (expand, inflate, grow).