()
| 42 | } |
| 43 | |
| 44 | public GameProfile getProfile() |
| 45 | { |
| 46 | try |
| 47 | { |
| 48 | UUID uuid = UUIDTypeAdapter.fromString(this.getPlayerID()); |
| 49 | return new GameProfile(uuid, this.getUsername()); |
| 50 | } |
| 51 | catch (IllegalArgumentException var2) |
| 52 | { |
| 53 | return new GameProfile(null, this.getUsername()); |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | /** |
| 58 | * Returns either 'legacy' or 'mojang' whether the account is migrated or not |
no test coverage detected