I'm creating a custom entity now. I've overriden attackEntityFrom(DamageSource, float) method for it, but it seems like it is never called, even if I hit my entity in creative mode.
Then, for debug purposes, I subscribed to some client tick event and logged Minecraft.objectMouseOver.getType().toString(). As expected, my entity is just ignored by raytracing.
F3+B overlay shows a perfect 1x1x1 box around my entity, that I obviously should hit. Entity exists on both client and server (I can /kill it and it's rendered).
So, here comes a question: what should I define for raytracing to notice my entity?