This is the code for the custom item entity:
This is the code for handling the spawning of the custom entity:
The log only shows that the "subscriber" method spawned a new entity using the custom constructor.
If I throw the item into fire or lava, none of the "logger infos" from any of the methods exept the constructor and the subscriber class appear. Also, the item disappears like it normally should.
My conclusion is that my custom constructor is used, but any of the overridden methods are not used, but replaced with vanilla ones.
My goal is to make the ItemEntity invulnerable to fire or lava.