moved reflection code to PlayerYawToMetadata