Particles and entities are stored in a similar way in memory, those bits used for particle effects are recycled as event bits in regular entities. The |= is merely a way of setting a single bit rather than a whole bunch of them.