Registers a handler called on the main server thread when a player interacts with this entity (right click).