A small rewrite in entities. This optimizes the entities system for the
MCPE protocol.