Returns a new EntityRef object that's a copy of this one. Note that what gets cloned here is just the EntityRef object (i.e. the indirection to an Entity). The underlying Entity, if any, isn't duplicated/cloned.
Returns the Entity pointed to by this EntityRef or null if the Entity isn't in the Game anymore.
Sets this EntityRef to point to the provided Entity. If it is set to null, this EntityRef is cleared and won't point to anything. If the given Entity doesn't belong to the Game, this EntityRef will return null when get() is called until the Entity is back into the Game.
Returns the id of the Entity this EntityRef points to. If this EntityRef is not set to anything, the id is the empty string